Form / Field Validation on a button...?

ellis355

29-02-2016

Hi

I have a form where I want to replace the Submit Button with a regular button to take better control of the created email title and body etc. I think I can achieve this using knowledge from previous threads on here however I am struggling to find the code to make my validation work.

Is there a JS command to invoke the form based validation and check for null on all the fields I have set to 'User Required'?

Thanks

Ellis

Accepted Solutions (1)

Accepted Solutions (1)

Magus069

MVP

29-02-2016

Hi there,

if you have set all the required fields to User Required, you should be using xfa.form.execValidate(); to validate all required fields.

Hope this will help ya!