I am new to Adobe Acrobat Pro 8, LiveCycle, and JavaScript. I have created a grading form for use on a tablet pc which I would like to send to students as instantaneous feedback following certain activities in a educational laboratory setting. I have created a dropdown box and added all 90 student email addresses via List Items in the Object pallette. How do I create the email submit function so that I can choose a student and immediately send them their graded form? Thank you!
var myDoc = event.target;
myDoc.mailDoc({
bUI: false,
cTo: EMail_List.rawValue,
cSubject: "This is my subject text",
cMsg: "This text is in the body of the message"
});
The code associated with the 'cTo:' field is how you would programmatically assign a email address to the message. You would need to substitute the name of your drop down list to extract the correct email address. This seems to work for me, hopefully, it will for you as well.