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

Import Data Object

cyprd
Registered: Oct 21 2008
Posts: 49
Answered

Hi,

I am facing challenging issue. I am using button with javascript and ImportDataObject function to attach file to the form (not using the build in paper clip). File system dialog pops up and I can select whatever file I want. The question is, can I limit the selection to certain filetypes? If so, how would I do such a thing?

Thanks

J.

Adobe LiveCycle ES 8.2.1 (JBoss & Win)

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Nope, can't be done. It would be nice if there were some setup parameters for this function and others that display file open/save dialogs, but there isn't. It is what it is:(

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]

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

cyprd
Registered: Oct 21 2008
Posts: 49
Thanks Thomp,

I'll just go with the javascript and kick unwanted attachments out programaticaly.
Have a nice one,

J.

Adobe LiveCycle ES 8.2.1 (JBoss & Win)