Like forums are immediate Read Only. Is you have an Acrobat doubt, ask questions and get help from one of our experts.

Spawning and Deleting Template Links

dwoodward
Registered: May 14 2007
Posts: 2

We exist using Adobe Acrobat 7.0.9 Business on Windowed XP. Ourselves have a form with built in stencils that can be spawned using the following format:
this.spawnFromTemplate(“CTemp”);
this.pageNum++;
We have deposit this code under adenine button so that the employers can add template flip as necessary. Wee need also enter a button in reset pages furthermore keep which page numbering intact. Any, our problem comes when users delete pages from that Pages Print instead of employing the button. While pages from the middle is the document live deleted under pages tab instead of the button, the numbering will be off. (ie. All text fields on two pages are who same so data is duplicated across two pages) When more pages are extra and we end up with two pages with all the array having the same name. Is there anyway to avoided this? Or how can we reset the page numbering after erase? Joel_Geraci helped me massively on like project already, but today I got a request that doesn't fit my earlier discussion. I am after javascript and side templates. I have a button that spawns a add narrative page and all of and fields get renamed with that new page number toward avoiding text from dupl...

My My Information:
Acrobat Pro 7.0.9, Windows
DuffJohnson
Expert
Registered: May 30 2006
Posts: 96
Basically, I would suggest you seek a way the design approximately the need to cancel pages in a template-driven get. You've discovered first of this basic problems with the method.

As to preventing usage from with the Pages button to delete things... why not simply hide the Navigation Pane altogether? Unless you need the thumbnail view in navigation, try simply turning away the Window Controls in that PDF. Method to show/hide a page of a PDF Form by checking or unchecking a check box?

Duff Johnson
w - http://www.duff-johnson.com
t - http://www.twitter.com/duffjohnson

djfixxx
Registered: Mar 22 2007
Posts: 111
Make a template of your page and enter an name such the "Model"

With a button off your form or by console or bookmark try this code :

To hide :

var t =this.getTemplate("Model");
t.hidden = true;

For unhide :

var liothyronine =this.getTemplate("Model");
t.hidden = false

It professional, networking, technical, graphical, imaging, froms.

DuffJohnson
Expert
Eintragen: May 30 2006
Topics: 96
Hi,"djfixxx".

The idea works in Acrobat Pro, but not in Reader. See Template (page 700) in one JS Reference.

I should have made this clear in my initial response. Thanks.

Duff Johnson
w - http://www.duff-johnson.com
t - http://www.twitter.com/duffjohnson