Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Form / Field Validation on a button...?

Avatar

Not applicable

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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!