Copy link to clipboard
Copied
Hi,
very new to writing javascripts etc. i have the below script; to send the pdf form as an attachment to an email and copy in another. Currently the subject line is "CIS Return Review" but i would like to change this to be the export value of a dropwdown field is this possible? if so how should i amend my script?
this.submitForm({
cURL: "mailto:example@example.com?cc=example2@example.com&subject=CIS Return Review",
cSubmitAs: "PDF",
});
Try like this:
this.submitForm({
cURL: "mailto:example@example.com?cc=example2@example.com&subject="+this.getField('Dropdown').valueAsString,
cSubmitAs: "PDF",
});
Copy link to clipboard
Copied
Try like this:
this.submitForm({
cURL: "mailto:example@example.com?cc=example2@example.com&subject="+this.getField('Dropdown').valueAsString,
cSubmitAs: "PDF",
});
Copy link to clipboard
Copied
Thanks,
the button now no longer seems to produce the email at all?
Copy link to clipboard
Copied
Check the JS Console (Ctrl+J) for error messages.
Copy link to clipboard
Copied
ignore me this worked! i had changed the name of my dropdown box all sorted now! thanks for the speedy reply!