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

Button to generate a new page

AcroHock
Registered: Jul 8 2008
Posts: 17

I have an old form that has a button to generate a continuation page for a large text box. I would just use an expandable subform, but I need the new page to appear at the end of the document. The old form has the deprecated code:

this.spawnPageFormTemplate("Template1");

I know that there is no method that replaced this one and LiveCycle help suggests not using Templates, but Subforms instead. Does somebody have a way of reproducing the same or a similar effect?

Thanks,
AcroHock

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
That statement is for Acro Forms in Acrobat and there is no direct conversion to LifeCycle Designer like many commands, properties and methods. This is because the technology used by these two products were developed by 2 independent teams in 2 different companies, Adobe and JetForms, and the 2 competitors did not share very much between them.

Have you looked at master pages and dynamic forms in LiveCycle Designer?

George Kaiser

AcroHock
Registered: Jul 8 2008
Posts: 17
Yes, I know all about Acrobat and JetForms, Dynamic Pages and Master Pages. What I would like to know is how to replicate what I want. I have done some research into the matter but have not had sufficient time to do a thorough investigation.

Thanks.
Formfingers
Registered: Feb 7 2007
Posts: 90
I've created a similar effect using the below script in my text field (placed in the "click" function), with an app.alert attached:

app.alert("Please fill out the Continuation Sheet provided.", 3, 1)

if (event.target.value =1) {
form1.ContinuationSheet.presence = "visible"
}
else {
form1.ContinuationSheet.presence = "invisible"
}

You'll obviously need to match up your subform names to your own. I have the above "ContinuationSheet" (which is a subform) set to Hidden/Exclude from layout.

See if this doesn't work for you...
AcroHock
Registered: Jul 8 2008
Posts: 17
Formfingers,

I was able to pretty much recreate the effects doing almost exactly what you have. I was also able to generate multiple continuation pages by using:

Subform1.instanceManager.addInstance()

Then setting the Max count for the subform to any number greater than 1 (that number is how many instances of the subform you can create).