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.

Show/Hide subforms like a popup


Level 2

please help me with this challange:

I want to have the user to click a button like "Show/Hide". Once clicked a subform with several field should show. The user fills in the fields and clicks on the button to hide the subform.

However, there are several subforms that flow. The thing I want is that the subforms move up or down when another subform is shown. It should be possible to have all subforms open at the same time, so all need to flow.

I hope that I have descripted my challange clearly enough ;-)

Thanks in advance!

1 Reply


Level 4
if (formAddress.presence == "visible") {

formAddress.presence = "hidden";


else {

formAddress.presence = "visible"


That will toggle between showing and hiding if you put it in the click event of a button and change "formAddress to" the address of the form you want to hide/show.



P.S. If they aren't moving up/down then they are not set to flowed.