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

Show/Hide subforms like a popup

NL_Erik_G
Level 2
Level 2
Hi,



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!



Joe.
0 Replies
Thomas_McConnac
Level 4
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.



Regards,



Tom



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