Combining two bits of JavaScript in mailto
G'day,
I'm trying use the mailto function for a button that should rename the subject line to the name of the PDF and also take an email address that is written previously in the document as the recipient of the email.
This is what I'm working with;
var docName = this.documentFileName;
var mailtoUrl = "mailto:[Email address]?body=[custom body]&subject="+ encodeURIComponent(docName); this.submitForm({ cURL: mailtoUrl, cSubmitAs: "PDF" });
and
getURL("mailto:" + getField("07 Work Email").value
Both of the bits of script work seperately but I have no idea to combine them.
