AnsweredAssumed Answered

JavaScript to trigger form validation rules

Question asked by jkwok on Apr 26, 2016
Latest reply on Jan 15, 2018 by nmarples

I am building a 2-page form using Nintex Forms 2013 v2.8.1

 

Page 1 - Display input controls to collect information

Page 2 - Display the summary of the entered information

 

The design of Page 1 includes one panel (named Panel1), "Next" and "Cancel" button.

The design of Page 2 includes one panel (named Panel2), "Previous", "Submit" and "Cancel" button.

 

The purpose of the "Next" button would be triggering validation rules by JavaScript using NWF.Formfiller.Functions.ProcessFormsValidation().

If it passes the validation, then page 2 would be displayed. User can review the entered information before clicking the "Submit" button.

 

However, I was not able to find any documentation about the syntax/signature of the ProcessFormsValidation() function.

If I call it with no parameters, it will always return true.

 

Here is the pseudo-code of the "Next" button (with Button type = "JavaScript").

if (form validation is passed) {

   hidePanel1;

   showPanel2;

}

 

If the button type is "Save" or "Save and Submit", it will trigger form validation and submit to SharePoint list.

If the button type is "JavaScript", I need the JavaScript function to trigger form validation without submitting to the SharePoint list.

 

Nintex Support is not able to provide support documentation on this JavaScript function and refers me to Community site for help.

Similar question was found in thread 4539 and 7709, but both were unanswered.

How to fire OOTB Nintex form validation using jQuery?

Validation on Multi-Panel Form with Next Buttons

 

Let me know if you have a solution or any workaround.

 

Thanks.

 

Johnny

Outcomes