Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Simple hide/show logic not working - pls help

Avatar

Level 10

I created a form with two pages .

page 1 is initially visible where as page 2 is not.

When clicking a button in page1, the page 2 must be visible and should hide the page1.

the code written is

page2.presence = "visible";

page1.presence= 'hidden';

xfa.layout.relayout();

when running the above code, the first page is blank instead of total hidding.
Any ideas?
Nith

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Nith,

If you change the pagination for page2 to "follow previous" it works:

Parallels Desktop1.png

Good luck,

Niall

View solution in original post

3 Replies

Avatar

Level 10

Avatar

Correct answer by
Level 10

Hi Nith,

If you change the pagination for page2 to "follow previous" it works:

Parallels Desktop1.png

Good luck,

Niall

Avatar

Level 10

Thank you very much Niall.

It works!

Nith