Build a button to insert a new page with fallible text boxes.

New Here ,
Dec 20, 2017

Copy link to clipboard

Copied

I am working on a sort of rolling log. A sort of activity tracker if you will. I have the form built the way i want however I would like to build a button that will insert a new page. This way as the user fills the previous page he/she can click the button and the next one is inserted for them.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

60

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Dec 20, 2017

Copy link to clipboard

Copied

You need a Page Template.  The really cool thing about Page Templates is that they work in the Free Reader!!  This didn't used to be true. 

Create a template on the "Organize Pages" display from the "More" dropdown.

For a template named "AdditionalItems" you'd use this button MouseUp code to spawn it as a new page at the end of the file

this.getTemplate("AdditionalItems").spawn({nPage:this.numPages-1 , bRename:true,bOverlay:false});

You'll find a really good example/tutorial here:

Search Downloads

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more