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.

Hide & Show page in a 3-pages form

Avatar

Former Community Member

Hi,

I have a 3-pages form that I would like to make it shows just one page base on the selection of the drop down list. e.g. If the user select option A then only page 1 is showing and the other 2 pages will be invisible/hidden or page 2 then page 1 and page 3 will hidden. I put some Javascript codes in the change event of the dropdown list above and it does not work well. It shows the other pages blank (white pages) when I select an option. e.g if I select option 1 then it show page with pg 2 & 3 blank or if I select page 2 then it shows page 2 between page 1 & 3 blank. My question is how can I make the form just show 1 page only based on the selection without showing any blank/white page. Please advice.

Thanks in advance,

Han Dao

0 Replies