Expand my Community achievements bar.

SOLVED

AEM 6.3 Forms - Hide repeatable panels

Avatar

Level 1

Hi All,

I have a requirement where I need to collect information (20 common fields) for multiple users on an Adaptive form.

The user should be able to enter information for one person. Then the are presented the option to "Add Another".

I tried using repeatable panel for this, however the problem here is I do not want to view other panels when filling this information.

As soon as the add another button is clicked show a new panel to collect necessary information but hide all the other panels for previous users.

What is the best way to handle this?

1 Accepted Solution

Avatar

Correct answer by
Level 8

On the click of a button you can hide and show whatever panels you wish.  I'd suggest using rule builder to provide the guidance for you.  You can just drag and drop the functions you wish to occur and not worry about the scripting.  Select the button and it looks like a gavel to go to rule builder from the context menu.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

On the click of a button you can hide and show whatever panels you wish.  I'd suggest using rule builder to provide the guidance for you.  You can just drag and drop the functions you wish to occur and not worry about the scripting.  Select the button and it looks like a gavel to go to rule builder from the context menu.

Avatar

Level 1

Thank you Steve. Solved the problem by using Accordion. Also tried out the Rules editor route and it works too.