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

Multiple forms and a form collection

mozman
Registered: Nov 18 2011
Posts: 8

Hi there
 
Is there a concept of a form collection in a PDF. I want to create a number of different forms in a PDF and be able to move content from one form to another.
 
I am using a third part tool (produced by a company called Ecrion) to produce the PDF.
 
What I would like to be able to do is refer to the different forms in the document, something like this - document.forms['form1']
 
Thanks
 
Grant

My Product Information:
Reader 9.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
A PDF can have any number of pages with any number of fields. If you use a heirarchical field naming convention (e.g., form1.text1, form2.text2) you can effectively do what you're talking about. Also, fields with the same name automatically will have the same value.
mozman
Registered: Nov 18 2011
Posts: 8
Apologies for not replying sooner, this project is a bit of a slow burning one.

I have currently done something similar to what you proposed and it works pretty well.

The restriction I have is that the software I use to create the document is xsl (xsl-fo) based and created sections, each section has to have compliant xslt tags (so if I have an opening form tag I need a closing one in the same section (rather than an opening form tag at the start and one at the end).

I could redo the document so that I only have one section but would rather have multiple forms in the same document if at all possible by the sounds of it this may not be possible

Thanks

Grant
try67
Expert
Registered: Oct 30 2008
Posts: 2398
A PDF file can only have one form "object".

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

mozman
Registered: Nov 18 2011
Posts: 8
Thanks for the clarification, I thought that could be the case

Thanks

Grant