Stop form from processing
-
Dear all,
I am setting up my first Ninja form and I want to create a condition in order to process the form only when a certain amount of questions are answered correctly, so I created the following in javascript:
$J(‘#ninja_forms_form_9’).submit(function(e){
if(amount of question is correct){
}
else{
}
e.preventDefault();
return;
})The good thins is that the data is not processed, but the submit button changes the submit text into processing and you cannot submit anymore.
Therefore am I wondering, how can I solve my bug? Either by adding code so that the submit button changes back to normal again, or by changing my code so that the submit button does not change.
I tried already return true/ false, or use break, but it all did not help.
Thanks a lot!
The topic ‘Stop form from processing’ is closed to new replies.