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

TOPIC: submiting on "next" button

submiting on "next" button 4 years 10 months 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: 4 years 10 months ago by stribor. Reason: adding
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.550 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form