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
SOLVED

ANOTHER VALIDATION QUESTION

Avatar

Level 2

I have a form that has 12 fields, 2 radio buttons, and a field for bank routing numbers.  These need to be validated.  Here's the catch.  Can't use "Submit by email" button.  I was thinking of using a "Save" button that would validate those fields.  But, I don't know how to get there.  As for the fields, the only requirement is that if it's empty, it must be filled. 

The next part is that 2 of the 12 fields, their inputs must be verified to ensure they are the same.  For example, the SSN field requires you to input your SSN.  On the next adjacent field, it requires you to input your SSN again.  The inputs of those two fields must be validated to ensure they match. 

Any assistance would be greatly appreciated.  Please, keep this in mind: I only know enough JS to be dangerous:-)

1 Accepted Solution

Avatar

Correct answer by
Employee

Regarding all fields, set them as User entered - Required

Kosta_Prokopiu1_2-1621019971373.png

 

And the 2 SSN fields add a validate script which compares them

Kosta_Prokopiu1_1-1621019897887.png

 

1 Reply

Avatar

Correct answer by
Employee

Regarding all fields, set them as User entered - Required

Kosta_Prokopiu1_2-1621019971373.png

 

And the 2 SSN fields add a validate script which compares them

Kosta_Prokopiu1_1-1621019897887.png