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

How to set up a submit button for a multiple-page form in Acrobat 9

hjp
Registered: May 4 2009
Posts: 3

Hello,

I have a multiple-page PDF form. It will be distributed to recipients on a flash drive. I can only figure out how to add a submit button that will return data from one page. I'd like to add a submit button that will return any completed fields from all pages of the form. Does anyone know how I can accomplish this?

Thanks.

My Product Information:
Acrobat Pro Extended 9.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Is this an Acrobat form or a LiveCycle form?

Regardless, form submission is always for the entire form. If only the form fields on the first page are being submitted then there is a problem with your form.

What specific submit action is the button using? Tell us more about your form.

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.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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

hjp
Registered: May 4 2009
Posts: 3
Thanks for your reply.

In reviewing my steps, I realized it was "user error!" Oops.

However, I have a new question. When the data comes back to me, is there a way to filter it so I just see the pages that have completed fields? It's a 69-page document, so it doesn't make sense to have to page through it to find the pages where somebody ordered something.

I was planning to have the data sent back in FDF format, so it could be opened and reviewed in the original PDF.

Thanks for any help you can offer!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, you can write a script that searches for filled out fields and navigates to the associated page. For best performance the script should look for just a single field that's associated with items you want to look at and not just any old field that's filled out. Ideally you'd have similarly named fields for each location. That would make searching easier

I'd suggest implementing this in one of two ways.

1. Make a copy of the original form and modify it to be your administrator form by adding navigation buttons for finding the filled out areas.

2. Make an Acrobat toolbar button that displays a popup menu of all the locations that contian filled out data.

To do the actual search use the "doc.getNthFieldName()" function to walk every field in the form and look for non-empty field values.

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.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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