I'm trying to retrieve values from a form to be part of an e-mail. The email part works just fine but I cannot get the values of the form to show up. I have a text field in the form named Procedure which contains the text I want to display in the e-mail.
var cMyMsg = "Below are the current budget figures:\n\n";
cMyMsg += "Date Compiled: " + resolveNodes("form1.#TopPage.Procedure").rawValue + "\n";
cMyMsg += "Current Estimate: " + resolveNodes("Procedure").value + "\n";
app.mailMsg({bUI: true,
cTo: "email [at] email [dot] com,
cSubject: "Signed Hazard Analysis",
cMsg: cMyMsg,
});
Thanks,
John
You should use the doc.mailDoc()-function in the click event of a regular button.
PS: More information about the mail functions can be found here:
http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs