This seems to be a fairly common issue in the forum, but I can't seem to get the advice found to work for me. I have a LCD 9.0 form with a regular button called Submit that I want to email a PDF. Nothing happens when I click the Submit button in LCD preview or Acrobat 9.0 Pro.
Script on the button is:
topmostSubform.Page1.Submit::click - (JavaScript, client)
//Variables to be used in the mail context
var myDoc = event.target;
var address = "myemail [at] xyzzy [dot] com";
var subject = "Deal Sheet Submission for ";
var account = topmostSubform.Page1.Header.Account.rawValue;
var from = topmostSubform.Page1.Header.Account_manager.rawValue;
var msgBody = subject + account + "\n\nProject description:\n" + topmostSubform.Page1.Header.Project_description.rawValue;
//Send mail action
event.target.submitForm({
cURL:"mailto:" + address +"?subject=" + subject + account + "from " + from + "&body=" + msgBody,
cSubmitAs: "PDF",
cCharset:"utf-8"
});
After I get it to work in Acrobat 9.0 Pro, I assume that I need to use Adavnced, Extend Features in Acobat Reader to get the form to be Reader enabled.
Thanks,
John
Thom Parker made a tutorial for this.
You should read it!
http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
For mailing the form as PDF you need a script like:
Ensure, you set the language to JavaScript in the script editor.
To use this in Adobe reader you have to enable Usage Right with Acrobat first.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs