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

Text Field from Initial AcroForm flows to Attached AcroForm

mR_Jones
Registered: Jul 6 2009
Posts: 25
Answered

I'm constantly running into new request regarding forms I create.
The newest is, being able to take a specific text field on an initial document. Then having this flow over to the attached document. If this even makes sense, and can be done would be lovely!

My Product Information:
Acrobat Pro 8.1.7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What do you mean by flow over. Do you want the value of the text field copied to a text field in an attached PDF? Please be specific about the behaviour

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

mR_Jones
Registered: Jul 6 2009
Posts: 25
Hello thomp,

My apologies for being vague.
Yes, the value of the text field copied to a text field in an attached PDF is what I'm aiming at.

Thanks -
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is absolutely possible. The Acrbat JavaScript DOM includes functions for opening an attached PDF file. After which the attached file can be manipulated with the regular doc object functions and properties. However, attached files are protected and require special Rights Enabling for this technique to work when the form is displayed Reader. So its not a practical technique, unless all your users are on Acrobat Pro or Standard.

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

mR_Jones
Registered: Jul 6 2009
Posts: 25
Thank you for the explination thomp, since most of the users will be using reader.
I would simply have to enable rights, correct?
Let's say for instance I have both docs open:
- Take the specific field I want from Doc 1.
- Copy field from Doc 1 to Attachment
- Enable rights on Attachment
- Attach (Attachment) to Doc 1

At this point I have a button which allows the attachment to open and be used when necessary.

Am I on track?

:)
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You're on track with the methodology, but only the parent PDF needs to be enabled, not the embedded file. However, Embedded file rights are not included in the enabling that comes with Acrbat Pro 9. This Right can only be applied with the Adobe Rights server.

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