Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Hide 1st page in form, is it possible?

Avatar

Former Community Member

Hello,   I have a 4 page form that I have pages 2-4 hidden until a selection is made from page 1.

My question is, is there a way to hide the 1st page after the selection is made which shows other pages in the form?

When I try to hide the 1st page, it shows as a blank page using:   MainPage.presence = "invisible";

Is there any code that will completely remove the 1st page and not just blank it out?

Thank you in advance for any insight!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You need to use the presence "hidden" to exclude it from the layout. Note you cannot hide all pages.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

You need to use the presence "hidden" to exclude it from the layout. Note you cannot hide all pages.

Hope that helps,

Niall

Avatar

Former Community Member

Thanks Niall!

Sometimes it can be the easiest solution...that worked perfectly!