Trigger form validations via Javascript


Badge +6

Hey,

Does anyone know how to trigger the form's validations from jQuery (i.e. a Javascript button)?

I'm looking for a proper solution, not just using a save button and somehow forcing it to return false;

Using F12 dev tools on a save button I concluded that I had to use NWF.FormFiller.Functions.ProcessFormsValidation, e.g.

if (NWF.FormFiller.Functions.ProcessFormsValidation(this, 'NfValidationGroupListFormformFiller', function () { }))

but didn't have any luck with that...

I found a similar question here: Nintex Form validations not triggering when using Client Click, but none of the replies seemed to apply to my question...

Manfred Lauer​ any ideas?


3 replies

Badge +7

Have you seen this article? Custom Validation for Nintex Forms I've used this idea in a form and it works for me.

Jan

Badge +6

Hey Jan,

That is indeed a good approach for Javascript validation, however what I wanted to see is if I could force trigger the Nintex Forms Validations themselves...

Do you know if that's possible?

Userlevel 6
Badge +15

Hey ‌ -- Were you able to find a solution to your issue?

Reply