These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Email response when Document is signed

carter.henricks
Registered: Jul 7 2008
Posts: 22
Answered

I'm looking for a way for an email to be sent to me automatically (or at least open the message from outlook) when a shared document is digitally signed. It would be helpful for the subject to be the filename of the document which was signed. Thank you.

My Product Information:
Acrobat Pro 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You need to put some code into the Signing Event for the signature field.

1. Activate the "Select Object" tool from the Advanced Editing toolbar
2. Right click on the signature field
3. Select Properties from the popup menu
4. Click on the "Signed" tab in the properties dialog
5. Enter code similar to this

app.mailMsg({cTo: "me [at] mine [dot] com", cSubject: this.documentFileName});

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

carter.henricks
Registered: Jul 7 2008
Posts: 22
Thank you for your quick response. Iwas able to finally get the script to work:

app.mailMsg(1, "employee [at] company [dot] com", "", "", "this.documentFileName", "The document has been signed")However the subject does not show up as the filename. Am I just not entering the right command?
carter.henricks
Registered: Jul 7 2008
Posts: 22
This is the script that I got to work:

var PartNumber = this.getField("PartNumber").value;

app.mailMsg(true, "employee [at] company [dot] com", "", "", PartNumber, "The document has been signed");
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In the first response you've placed "this.documentFileName" in quotes. this.documentFileName is a property of the document object, you don't quote it.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

carter.henricks
Registered: Jul 7 2008
Posts: 22
Ah, thank you very much.
wlisslw
Registered: Jan 21 2008
Posts: 2
I have a form that an employee fills out and emails to their supervisor. The Supervisor then signs the form. I would like to generate an email back to the employee once the form is signed. I am using Live Cycle 9.0