Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Forms validate fields .

Avatar

Level 3

Sir,

 

I am making a PDF form in AEM where i have a form with different sections, i want that will see the next section when they have completed the previous section.  

1. I have 5 section form. 

2. Each section has fields like Text field, image field, dropdowns, checkboxes, tables with ability to add or remove rows.  I have made all the section in separate subforms (SF1 to SF5).

 

Now i want to make a checkbox after each section... so that when user completes the section 1 completely then only the checkboxes is visible and clicking on this checkbox  the second section is visible , if user has not completed the section fully it should show user message (when user clicks on a button) or something that these fields are empty plz fill first and then focus on the last empty fields.

 

How to do it .. Plz help.

 

Thanks

@radzmar 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 3
AEM form Designer not server

View solution in original post

3 Replies

Avatar

Level 10

By AEM do you mean AEM Forms Designer or AEM Forms running at a server? 

Avatar

Correct answer by
Level 3
AEM form Designer not server

Avatar

Level 10

You can do this with a script in the change event of a checkbox. 

 

SF2.presence = this.rawValue === 1 ? "visible" : "hidden";