Form / Field Validation on a button...?

Avatar

Avatar

ellis355

Avatar

ellis355

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)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
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!

Answers (1)

Answers (1)

Avatar

Avatar

ellis355

Avatar

ellis355

ellis355

29-02-2016

Hi – many thanks ☺