Script to automatically email document once signed?
Copy link to clipboard
Copied
Good afternoon,
While I am not new to Adobe Acrobat DC, I am fairly new to scripting in Adobe Acrobat DC.
I am preparing a satisfaction report as a fillable PDF for internal satisfaction surveys. However, most of the people I am sending this to are rather technologically inept and I'd like to make it so that once they sign digitally they are given the option to send it via email(Outlook).
I had a submit button, but it does not want to work after they sign the document.
I greatly appreciate any and all help you can provide!
Also, I do not have Adobe Sign. My company did not want to fork out any extra for that.
Copy link to clipboard
Copied
Hi,
That is because once you sign the document it locks it.
You can work around this by editing your form; right-lick on the signature field to select Properties.
There are two options available: you can select what fields turn to read only after the signature is applied, leave the submit button unselected from this list, OR, if using a javascripto submit the form after it is signed, you can tick the radio button below and choose "execute this script when the signature is applied".
Copy link to clipboard
Copied
If you have updated to Acrobat latest version updates, Adobe Sign is now featured with Acrobat Pro DC. This is a good option.
However, if your big boss still doesn't want to use Adobe Sign in this type of workflow, then you can use the following script as a mouse -up action in a button or as an action that will execute at signing time:
var cFromAddr = "";
var cToAddr = "";
var cSubLine = "";
var cBody = "";
this.mailDoc({bUI: true, cTo: cToAddr, cFromAddr: cFromAddr, cSubject: cSubLine, cMsg: cBody});
}
Leaving all blanks with a empty or null value ("") will open in Outlook with a clean email session.
If you want to force the MS Windows or Outlook Address Book to pop up before the email is sent then add an empty space in the variables "cFromAddr" and "cToAddr" like this:
var cFromAddr = " ";
var cToAddr = " ";
var cSubLine = "";
var cBody = "";
this.mailDoc({bUI: true, cTo: cToAddr, cFromAddr: cFromAddr, cSubject: cSubLine, cMsg: cBody});
}
This second script will force MS Outlook to not recognize the empty space string (" ") and will bring up the Address Book for the user to select a contact.
Inany case, to run this script at signing time instead of a button with an Mouse-up Action, right-click on the signature field, select Properties, and go to the "Signed" tab. See slide below:

