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

Show or hide an entire page using Scripting

Avatar

Former Community Member
Hi All,

I am new to the life cycle designer.

Can any one tell me how to show or hide and entire page using the scripting. I want some pages to appear or disappear based on their selections on the form.



Thanks,

Vikram.
5 Replies

Avatar

Former Community Member
Set the page presence property to hidden. The form must be dynamic for this to work

Avatar

Former Community Member
Hi Paul,

Thanks for the response.

it works i was trying to do it with master pages and could not find the hidden answer. it works now.



Thanks,

Vikram

Avatar

Former Community Member
Is there an example on how to do this somewhere?

Avatar

Former Community Member
Paul,



A similar question, is there a way to have a total of 5 pages, on the first page you simply have a header (master page) and (4) possible selections - if you choose selection #1, only page one is shown, if you select #1 and #2, then pages one and two show, and so forth? Can this be done with some scripting as well? If so, can I get a suggestion on how to do this?



keith.reim@chlsystems.com

Avatar

Former Community Member
Yes .....simply set the presence property of the page to hidden or visible to hide and show the appropriate page. All objects below the page level will adopt the property of its parent.