Expand my Community achievements bar.

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

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