You are viewing limited content. For full access, please sign in.

Question

Question

Pagination - Prevent user from navigating to next 'page'

asked on August 28, 2015

I am using the pagination found in BPM251 & BPM302 and it is working great!  I'm looking to add a bit more functionality and ensure all the fields are filled out before the user is able to move onto the next page.  If a required field is not filled out, I'd like that field to be 'highlighted' with the 'Please fill out this field' text displayed below it.  Similar to the image below.  I looked in the source and could not find this code anywhere...  Any help is much appreciated!  

Thanks,

Nate

0 0

Answer

SELECTED ANSWER
replied on August 28, 2015 Show version history

The answer to this question worked for me. https://answers.laserfiche.com/questions/68947/Making-it-mandatory-to-fill-all-fields-under-one-tab-before-continuing

//validate whether the required fields are filled
 var valid = true;
 $('#form1 input, #form1 textarea, #form1 select').filter(':visible').each(function() {
 if(!$(this).checkValidity()) {
 valid = false;
 }
 });
 if(!valid) {
 return;
 } 

 

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.