Display data from form in email
I have a form created many years ago by someone alot smarter than I. They used Adobe Acrobat to make a form and added a button that used Java script to email the form to a group. I have been able to get the script narrowed down to what I need other than I would like for it to add a field from the form, memberid, in the subject line of the email. Right now the Java code it this:
// submit the form
if (bContinue) {
var submitURL;
if (app.viewerVersion < 9.0)
submitURL = "mailto:djackson@*********.com?subject=Submitting Completed Form <memberid>&body=Instructions to add this form to a response file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a response file.&ui=false";
else
submitURL = "mailto:djackson@*************.com?subject=Submitting%20Completed%20Form%20<memberid>&body=Instructions%20to%20add%20this%20form%20to%20a%20response%20file:%0A1.%20Double-click%20the%20attachment.%0A2.%20Acrobat%20will%20prompt%20you%20to%20select%20a%20response%20file.&ui=false";
currentDoc.submitForm({
cURL: submitURL,
cSubmitAs: "PDF"
});
}
All it is doing is putting <memberid> in the subject line, not the actual number from the memberid field in the form. Any thoughts? is this even possible?.
