Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Change page1 presense to Invisbile when click button - Javascript of Calcform script please

Avatar

Former Community Member
I have a form with a button on it. I want page 1 of the form to be invisible once the button is clicked.



Page is named Page1

Button is named Finish.



Thank you.

John
1 Reply

Avatar

Former Community Member
Make sure that you form is set to be Dynamic. Make sure the button is not on page 1. Assuming that your root level node in your hierarchy view is form1. On the click event of the button set this javascript code:



form1.Page1.presence = "invisible";