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.

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";