Help! I am using “mailto:” in the "Submit to URL:" field in a submit button to open an email with the filled out PDF attached when “SUBMIT” is selected.
I also use “?Subject=xxxx” in the "Submit to URL:" field to populate the email subject line with with text “xxxx”.
Instead, I want to copy an entry from a drop down list into the email subject line when “SUBMIT” is selected.
Is this possible? I have searched the forums and can’t find an answer.
Here is a script I'm using for sending mails with customized parameters.
You have to use it with a button on the mouse up oder click event.
Don't use the general mail button for this and remember to enable user rights for the PDF.
**************************************************************
// Variables to be used in the mail context
var myDoc = event.target;
var address = "name [at] domain [dot] net";
var sub = "This mail was returned by ";
var msgBody = "Hello,\n\nSee my PDF attached.\n";
var Sender = Form1.Page1.Header.Sender.rawValue;
// Send mail action
myDoc.mailDoc({
bUI: false,
cTo: address,
cSubject: sub + Sender,
cMsg: msgBody + "\n\nKind regards\n" + Sender,
cSubmitAs: "PDF"
});
**************************************************************
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs