Copy link to clipboard
Copied
Hi, I'm trying to make an Javascript button event that will send an email and a PDF form. I have the form properly emailing, and the subject line is dynamically updated with whatever is in the field "What do you want the report to show or compare" but I can't figure out what to enter to make the body of the email read the same thing every time.
I just need it to run a little disclaimer for the submitter and it'd read something like "Click send to complete form transmission" I have tried cBody and cMsg but don't know how to get those to both work. If it matters, I'm trying the cBody after the cSubject. I am very new to Javascript. Thanks.
Here is what I have working so far:
"this.mailDoc({cTo: "example@work.com",
cSubject: this.getField("What do you want the report to show or compare")
.valueAsString});"
Copy link to clipboard
Copied
Hi, I'm trying to make an Javascript button event that will send an email and a PDF form. I have the form properly emailing, and the subject line is dynamically updated with whatever is in the field "What do you want the report to show or compare" but I can't figure out what to enter to make the body of the email read the same thing every time.
I just need it to run a little disclaimer for the submitter and it'd read something like "Click send to complete form transmission" I have tried cBody and cMsg but don't know how to get those to both work. If it matters, I'm trying the cBody after the cSubject. I am very new to Javascript. Thanks.
Here is what I have working so far:
"this.mailDoc({cTo: "example@work.com",
cSubject: this.getField("What do you want the report to show or compare")
.valueAsString});"
Copy link to clipboard
Copied
Hi deantripp,
Here is an article covering this topic that should be helpful in explaingin how this works.
https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
Hope this helps,
Dimitri
Copy link to clipboard
Copied