This content has been marked as final.
Show 2 replies
-
1. Re: Sending an email, plus extra form details
George Johnson Oct 27, 2010 2:25 PM (in response to Roy Marshall)It's possible, but you'll have to use the doc.mailDoc method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
If you search around, you should be able to find some sample code. You can get field value like:
// Get value of a text field into a variable
var name = getField("Name").valueAsString;
-
2. Re: Sending an email, plus extra form details
Killer Turtle Nov 22, 2010 6:28 AM (in response to Roy Marshall)Here is what I use.
if (form1.Mainpage.Table1.Row3.Table2.Row1.Table11.Row2.CoordEmail.rawValue != null){ form1.Mainpage.Table1.Row2.RealEmail.event__click.submit.target = "mailto:" + form1.Mainpage.Table1.Row3.Table2.Row1.Table11.Row2.CoordEmail.rawValue + "?cc=" + form1.Mainpage.Table1.Row3.Table2.Row6.TrackingEmail.rawValue + "&subject=" + form1.Mainpage.Table5.Row4.Subject.rawValue + "&body=" + form1.Mainpage.Table1.Row3.Table2.Row6.emailbody.rawValue; //app.alert(RealEmail.event__click.submit.target); form1.Mainpage.Table1.Row2.RealEmail.execEvent("click"); } else { app.alert("Please enter a E-mail Address in the lower TO box!"); }You have to add a real email button, and a fake email button. The fake button passes all the information to the real email button.



