I am using Acrobat 8 Pro and LiveCycle Designer 8.0
Is there a a way to write a script to allow the user to attach an image file? Could this image file then be collected along with the form data when the document is submitted via email? This would be for users opening the doc using Reader.
-What I am trying to accomplish is for a user to receive the document, answer a few survey questions, and click a button to attach their own image file to the doc. Then when they hit submit, the form data is returned along with the image file. I would rather add a scripted button than rely on the user to use the built in attachment method.
Here are the steps:
1. Create a text field
2. In the Properties dialog check
- Scroll Long Text
- Field Used for file selection
3. Add this "MouseUp" Script to the field
event.target.browseForFileToSubmit();
When the field is clicked a File open dialog will be displayed. The selected file will be submitted with the form data.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script