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

Allowing User to Ask for More Fields

ilenearg
Registered: Sep 23 2007
Posts: 10

I've created a Pro 8 form with a table on the last page which will allow user to input info re a location (address, contacts, etc.). I want to put some sort of a button after the table that will allow the user to insert an additional table (as many as needed) to put in info on additional locations. How do I do this?

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is just the sort of thing that LiveCyle forms were created for. Since you have Acrobat 8 you have the LiveCycle Designer tool. Look through the LiveCycle Designer help files and the provided examples for Dynamic Forms. You should find several that show "Repeatable" fields.

There are quite a few things that need to be set up correctly in order for a set of fields to be repeatable, but the key piece is a single line of code you'll need for the button's click actions. It should look something like this.

MySubform.instanceManager.addInstance();

The architecture of these forms is not obvious and you need to read a bit and may even need to get some professional help to get it right. The terminalogy is also not obvious. You want to look for information on LiveCycle Designer and XFA Forms. You'll see quite a bit about "LiveCycle" and "LiveCycle ES". This is not the same and can be very confusing. Make sure anything you read is specifically about the "Designer", and about creating forms.

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