Copy link to clipboard
Copied
I need to have the form returned to the author's email (a field on the form) when a user signs a form's section.
The form has four sections - the top is by the author stating a set of proposed actions. The last three sections are for each of three people to add comments and answering yes or no on concurrence to the authors question.
Question: how can you include both locking a sections fields and sending the form to the author when the user signs that section? I can see how to lock the fields. but, how do I do both with one signature?
We are a military organization using Adobe Acrobat XI Pro with Outlook Email clients on all workstations and we use digitally signed access (DoD CAC devices) so we already have digital certificates in place.
/David
Copy link to clipboard
Copied
Instead of just locking the fields, you may be able to execute a custom JavaScript code when the signature field is signed. The signature's JavaScript action would make certain fields readonly; as well as, email the submission using doc.mailDoc, doc.mailForm, or doc.submitForm. The signature's signed JavaScript event can be added instead of just locking the fields; and can be found in the signature field's properties dialog using Acrobat Pro/Std. In order to sign and email the whole PDF format; you would need 1) Adobe Acrobat Standard or Pro; or 2) the latest version of Adobe Reader, or 3) Extend usage rights to the PDF for end-users with older versions of Adobe Reader.
Signature field #1:
// LOCK FIELDSET #1 (readonly)
this.getField("fieldName1").readonly = true;
this.getField("fieldName2").readonly = true;
this.getField("fieldName3").readonly = true;
// GET EMAIL ADDRESS #1
var email = this.getField("recipientAddress1").value;
this.mailForm({ bUI: true, cTo: email, cSubject: "Subject Title", cMsg: "Message Body: See attachment..." });
Signature field #2:
// LOCK FIELDSET #2 (readonly)
this.getField("fieldName4").readonly = true;
this.getField("fieldName5").readonly = true;
this.getField("fieldName6").readonly = true;
// GET EMAIL ADDRESS #2
var email = this.getField("recipientAddress2").value;
this.mailForm({ bUI: true, cTo: email, cSubject: "Subject Title", cMsg: "Message Body: See attachment..." });
REFERENCE:
--------------------------------------------------------------------------------------------------
Field.readonly JS reference:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#437
Field.readonly JS Example:
this.getField("fieldName1").readonly = true;
this.getField("fieldName2").readonly = true;
this.getField("fieldName3").readonly = true;
--------------------------------------------------------------------------------------------------
submitForm JS reference:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=345
submitForm JS Example:
var email = this.getField("recipientAddress").value;
this.submitForm("mailto:"+email);
--------------------------------------------------------------------------------------------------
mailDoc JS reference:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=322
mailDoc JSExample:
var email = this.getField("recipientAddress").value;
this.mailDoc({ bUI: true, cTo: email, cSubject: "Subject Title", cMsg: "Message Body: See attachment..." });
--------------------------------------------------------------------------------------------------
mailForm JS reference:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=323
mailForm JS Example:
var email = this.getField("recipientAddress").value;
this.mailForm({ bUI: true, cTo: email, cSubject: "Subject Title", cMsg: "Message Body: See attachment..." });
--------------------------------------------------------------------------------------------------
Copy link to clipboard
Copied
Thanks! I’ll research and give it a try. I’ll let you know the results – probably in a week or so. (Busy times at USCG…)
v/r
/David
"Get Involved -
The world is run by those who show up."
Find more inspiration, events, and resources on the new Adobe Community
Explore Now