Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: submiting on "next" button

submiting on "next" button 5 years 1 month ago #67613

  • stribor
  • stribor's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
I have survey "question by question". I also have validation on the question and it works fine when user clicks on "next" button but it doesn't when user hits enter button.
I tried this few different ways to prevent submission on "enter" button but it doesnt work.
It doesn't even print submit string event when you press enter event.type().
is there way to prevent submission of the form when enter is pressed until answer is correct.
for example when you hit enter this handler is never called while on click it is.
$('#limesurvey').submit(function() {
  alert('Handler for .submit() called.');
  return false;
Last Edit: 5 years 1 month ago by stribor. Reason: adding
The administrator has disabled public write access.
Time to create page: 0.210 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form