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

how can i attach a file to a form

desiboy420
Registered: Mar 10 2011
Posts: 2

Hi Guys,
I wonder if someone can please help me out with a problem I’m having with a form I’ve designed.
I want to have an attachment button where the user can attach a file (pdf, jpeg, etc) to the form and it stays as part of the form?
Is this doable?
How many files they insert?

desiboy

My Product Information:
LiveCycle Designer
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, it is doable, but only if the user has Acrobat Pro. File attachments are a special Reader Enabling Right that can only be applied with the Adobe Rights Server.

Put this code on a Button Click event on your form:

event.target.importDataObject();

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

desiboy420
Registered: Mar 10 2011
Posts: 2
Maybe I should have been a bit more honest about my skills with Acrobat forms…

I know VERY LITTLE… I do however have Acrobat Pro. And so do some of the people who will be filling in the form…

How do I get to “button click event” to add the code in?

Thanks again


desiboy

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are lots of tutorials at this web site on LiveCycle form.

For example, this video:
http://adobechats.adobe.acrobat.com/p87746471/

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