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

E-Mail submit Question

Lady Di
Registered: Feb 18 2009
Posts: 86

Is there a way to make the E-mail submit button send a pdf file instead of an xml file? I am not using the form to collect data, because it should not always go to the same person. However, I still want the functionality of the button, where it will not generate an e-mail until all data is filled out.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, there are actually several posts here that describe how to change the XML so that the form sends as PDF. However, the easy way is to use a Regular button, not an email button. Look on the object tab for the button. You'll see that you can set the button to perform a submit action. Click on this radio button and a new "Submit" tab will appear. Enter the url as an email url, like this.

mailto:support [at] windjack [dot] comThom 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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

Lady Di
Registered: Feb 18 2009
Posts: 86
Thank you, that was very helpful. I have one more question regarding the submit button. I also want to be able to control the subject line of the e-mail. I want to pull a field from my form and put it in the subject line, along with some standard text (i.e. "PO for Macy's" - Macy's being the customer name on the form). Can I still do that while submitting a pdf form?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Look at these two articles:

http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
http://www.acrobatusers.com/tutorials/2006/submitting_data

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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

Lady Di
Registered: Feb 18 2009
Posts: 86
I have looked at these links before. As a matter of fact, I used the code provided in these links on forms I created in Adobe Pro. However, I don't know where to put this code in LiveCycle.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In those articles the submit is done purely though JavaScript. It does not use the built-in submit action. However there is a way to use a script on the MouseDown action to setup the email parameters on a regular email submit button, but this is an advanced scripting topic.

The basic idea is to manipulate the submit parameters in the XML structure of the button. Create an email submit button, fill out all the submission parameters, and then take a look at the underlying XML. You'll be able to see all the properties that need to be changed to make this happen. Including changing it to submit PDF. So just write a MouseDown script to manipulate these parameters.

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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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