Highlighted

Show/Hide subforms like a popup

Avatar

Avatar

NL_Erik_G

Avatar

NL_Erik_G

NL_Erik_G

23-01-2009

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.

Replies

Highlighted

Avatar

Avatar

Thomas_McConnac

Avatar

Thomas_McConnac

Thomas_McConnac

23-01-2009

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.