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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Problem with verification

Avatar

Level 1

I am trying to get a form to validate the completion of certain fields. I can get it to work if I insert an email button but the form has to be attached to an email not sent directly.

I guess I need to attach a button or some sort of script.

Any suggestions would be very much appreciated.

2 Replies

Avatar

Level 10

Validations are run automatically when th eform is submitted. If you want to force the validations to run you can use the execValidations() function that is part of any node. If you run that on the root level node (form1) then it will run all validations. It will return a true or false value depending on whether the validations pass of fail.

Paulk

Avatar

Level 1

Thank you very much for your reply, however, I am quite new to this so I'm not really with you!! Sorry

Can I alter the buttons script to "save as" as long as my fields are filled in???


Thanks