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

Add new page button problems

powerserge
Registered: Dec 7 2011
Posts: 4
Answered

I can’t find an answer to the following question.
I have a header and a footer on a master page. My master content area takes up about 2/3 of the page’s height, because I don’t want the content to overlap the header and the footer. This page may repeat for up to 10 times. The row has an add row button, so the user takes more page space on as needed basis. The rows expand dynamically and allow multiple lines. If the user runs out of content space and adds new row, the new row appears on the next page. So the page seems to flow correctly. Each page of the form must contain only one topic, however. Most of the time, the topic will not fill the entire page, therefore the user has to add a new page. When I edit the click event for the ‘Add New Page’ button using the code:
 
Subform#.instanceManager.addInstance(true);
 
the only thing that gets added is one more row with a button contained within their own subform. I am unable to add a new page until the current page is full.
 
This forum has helped me a lot. Thank you!

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

you don't have to add new pages mannually, if the content is to small for 1 page.
If you set up you page (Subform#) to flow top-bottom and allow page breaks for the page and the table, then the content will break automatically onto a new page if neccessary.

Please watch the Tech Talk.
It describes this technique a has a lot sample for download at the end you can work with.
Tech Talk: Developing Flowable Form Content

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

powerserge
Registered: Dec 7 2011
Posts: 4
Thank you for your response, radzmar! Unfortunately, in this case, I do have to add a new page. A government regulation requires multiple topics, with each on a separate page. The topic almost never fills the entire page.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Can you share your form? I think it would be easier for me to check what you're trying to achieve.


radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Accepted Answer
I added a conditional break to "subform4" for those cases you want to start this subform on a new page when repeated.

Subform4[-1].index ne Subform4.index

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

powerserge
Registered: Dec 7 2011
Posts: 4
Marcus, thank you! You were very helpful!