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

New Page Button

CSUDerek
Registered: Oct 22 2009
Posts: 4
Answered

I am trying to create a form that is just for in-office use. I created the Form in Word, published to PDF and placed the form fields onto the document. We plan to fill this form out for each patient we process and then print all pages to PDF for filing. We typically do these forms in batches of unknown numbers so I am wondering if I can put a button on my form for a "New Page" that will automatically put an identical form into the PDF. The problem I've had (besides having no idea on how to do the button part) is when I insert an identical form into the PDF the field names are identical thus have the same value, i.e. if I type John Doe on page one, its shows up on page 2, 3, 4, etc.. Is this idea possible?

Thanks in advance!

Derek

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, this is possible, but for an AcroForm it's only possible if the form is open in Acrobat Professional. What you're looking for is the "Template" JavaScript object. You can convert a form page into a "Template" and then use a button script to spawn new pages that have different form field names.

Alternatively you could create a dynamic LiveCycle form with a repeatable subform, where the subform is your entire page.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Once you have created your template, you can add a control button that can used to add a new page. As Thom has noted one needs a full version of Acrobat to manipulate the template, so those with Reader will not be able to take advantage of this feature.

George Kaiser

CSUDerek
Registered: Oct 22 2009
Posts: 4
Thank you guys for the responses. Unfortunately, by the sounds of it, these options won't work just yet. In our office I am the only one with Acrobat Pro and the other people only have acrobat reader. If I am understanding you, this avenue is not possible for those with reader and not pro, is that correct?

I really appreciate your help.

Derek
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can do this in Reader with a LiveCycle Designer form. Take a look at this tutorial:

https://admin.adobe.acrobat.com/_a200985228/p87746471/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script