I have been struggling for a few days now on a submit button that I need to do many things.
I've read so many forums on this, but still can't get it quite right.
I need this button to email a pdf with the subject line that says District ## <---being a response from the form.
I need it to be electronically signed
I have tried.....
1. I made a submit button that I can click and it will sign and mailto URL, but can't figure out how to get the subject to be dynamic.
2. I have a regular button with a Javascript click code as...
var subject = "District " + district.rawValue;
var myDoc = event.target;
try{ myDoc.mailDoc({
bUI:false,
cTo:'receiver@domain.com',// Replace with actual receiver mail address.
cSubject: subject,
cSubmitAs:"PDF"
});
}catch(e){
// exception handling...
}
and then had it call another Submit button that is invisible that actually does the Submit / Sign etc.
The problem with this one is it's trying to submit two times.
Does anyone have any magic they can share with me?
I have tried using the HTTP buttons as well to no avail.
Gretchen