These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hide the 1st page in a form

drizagon
Registered: Oct 22 2009
Posts: 41
Answered

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!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

to exclude the page from the form layout you need

MainPage.presence = "hidden";

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

drizagon
Registered: Oct 22 2009
Posts: 41
Thanks radzmar...sometimes it can be the easiest solution.
skunapareddy
Registered: Sep 28 2009
Posts: 18
Hi can you please tell me how you got 2-4 pages hidden?

Thank you in advance,
rgds,
Suma
drizagon
Registered: Oct 22 2009
Posts: 41
All you need to do is identify the page(s) that you want to hide. For example:

Page1.presence = "hidden";
Page2.presence = "hidden";
Page3.presence = "hidden";

You will want to add this to the docReady event if you want the pages to be hidden upon loading of the form.
A_Nambiar
Registered: Dec 29 2009
Posts: 5
Hi,
i am also having a similar problem. on clicking of a button i want my 1stt page 2 be hidden but i am getting a blank page.
i was using Page1.presence = "hidden".

Thanks in advance!
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
@ A_Nambiar

Check your pagination settings for the first page.
It has to be to "Following Previous".

Check out this example, to see how it works.
[url]https://acrobat.com/#d=QEU1sTOZt2qZkdK*u9ro6g[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

A_Nambiar
Registered: Dec 29 2009
Posts: 5
@ Above

the first page pagination is 'following previous'.

one more thing i have to know, like...i have 2 master pages. can i assign 1st masterpage to page 2 and 2nd master page to page 1....if so how?
skunapareddy
Registered: Sep 28 2009
Posts: 18
Hi Drizagon,
Thank you so much for the reply.

rgds,
Suma
drizagon
Registered: Oct 22 2009
Posts: 41
A_Nambiar,

You could have a button (or DD or checkbox) that is scripted to hide/unhide pages based on selection or click action.
halzamoras
Registered: Apr 12 2010
Posts: 3
drizagon wrote:
All you need to do is identify the page(s) that you want to hide. For example:Page1.presence = "hidden";
Page2.presence = "hidden";
Page3.presence = "hidden";

You will want to add this to the docReady event if you want the pages to be hidden upon loading of the form.
Hey guys,
Sorry to revisit this subject but I'm just starting to use acrobat and this is the ony topic that wa similar to what i'm going thru.

I have Acrobat 9, I have a form that has 2 pages (same content with different footers) my fields are duplicated in the 2nd page and it's working fine. I want to hide the 2nd page since there is no need to be seen... but still want it to print when i print out the document. I read this scripts to be added, but I also have no idea where to add the in acrobat 9. Can someone help me please?
drizagon
Registered: Oct 22 2009
Posts: 41
In LiveCycle, you could highlight all fields on the 2nd page and from the Object Library, Object Tab, Field Tab choose "Visible (Print Only)" under the Presence field. This will print the fields when the form is sent to the printer. If you just have Acrobat 9, I don't think this is possible.

Good luck!
Drizagon