Adobe Form JavaScript
Copy link to clipboard
Copied
Can someone help me figure out a javascript for my form?
I have a submit button on my adobe form, but I am trying to figure out the script to change the body of the email that is populated once the person filling the form out clicks submit.
I found this script on a forum, but I cant get it to work.
var cToAddr = "maria@titan.net";
var cSubLine = "Dielectric Testing Information";
var cBody = "Please note, we have changes to our testing preferences.";
So I would like to have the email sent to myself (maria@titan.net), the subject line to say "Dielectric Testing Information", and then the body of the email to say "Please note, we have changes to our testing preferences."
Any help is much appriciated!!
Copy link to clipboard
Copied
Do you want the form emailed? Use this:
this.mailDoc({cTo:"maria@titan.net", cSubject: "Dielectric Testing Information", cMsg:"Please note, we have changes to our testing preferences."});
Copy link to clipboard
Copied
Yes, I would like for it to open up a new email and automatically attach the full PDF once the submit button is clicked.
Copy link to clipboard
Copied
Use the script I provided.
Copy link to clipboard
Copied
For future reference:
https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/
Use the Acrobat JavaScript Reference early and often

