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

Show Attachments Files

patra
Registered: Oct 19 2006
Posts: 270

Is it possible with a script in a button to show the Attachments PDF files when a user clicks on the button?
I am creating the form with Designer 8.0
Users will use Reader 7.0

Thanks

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, the attachements panel is shown and hidden from a menu item that can be run from a script. Adobe changed some of these menu item names so you have to be careful about getting the name.

This article shows how to acquire and use Acrobat menu items.

http://www.acrobatusers.com/tutorials/2008/06/executing_menus_with_javacript/

Since you are using a LiveCycle Form you'll need to use slightly different code than what's described in the article

Use code like this this to execute a menu item:

event.target.execMenuItem(...);

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/]http://www.adobe.com/devnet/acrobat/[/url]

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