I would like to add a button to a form created in Livecycle that will allow my low/no tech end users to be able to press and attach files to the form even in Reader before the form is submitted via the "Submit by E-mail" button. Any suggestions, previous post answering this question is missing the instructions link
Also, from the XFA JavaScript context, the "Doc" object is acquired with "event.target", so the code in the button's click event would look somthing like this.
event.target.importDataObject({cName:"theName"});
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script