Skip to main content
Blueprint-Pre-Press
Participating Frequently
December 18, 2019
解決済み

Can Acrobat auto populate a Name field upon digital signature of a form?

  • December 18, 2019
  • 返信数 2.
  • 8640 ビュー

I know you can auto populate a Date Field upon Digital Signature from a form but I'd also like to auto populate a Name Field. I am making a form which requires a Digital Signature for approval, along with the client's Name and Date of Approval. I have added the required Java script to generate the Date but I was wondering is there a way to generate the Name based on the name information from the digital signature?

このトピックへの返信は締め切られました。
解決に役立った回答 ls_rbls

Extracting from ls_rbls - this is what worked perfectly for me.
When signed, the document fills out a date stamp next to it automatically.


Insert Text Box next to Signature > Right-click the Text Box > Properties > mark Read Only and close.


Script: Right-click the Signature > Properties > Signed > Edit > Paste the following:

var f = event.target;

var sigInfo = f.signatureInfo();

this.getField("Text34").value = util.printd("yyyymmdd", new Date((util.scand("ddd mmm dd yyyy HH:MM:ss ZZ", sigInfo.date ))));

if (f.signatureValidate()==4);

 

... but ... Hahah.

 

If I remove the signature, how do I delete the data without changing the box to NOT be Read-Only.


Great!

 

And thank you for sharing this.

 

To clear the contents of the date field when the signature field is cleared, you may use a custom validation script or custom calculation script executed directly from the date field.

 

Something like this:

 

 

if(this.getField("mySignatureField").value == "") event.value = "";

 

 

OR,

 

You may also add a Mouse Exit event to the signature field:

 

 

if(event.target.value =="") this.getField("Text34").value = "";

}

 

 

With the latter script, when the signature field is cleared and the mouse pointer is moved outside of that field it will set the date field to a blank value.

 

返信数 2

try67
Community Expert
Community Expert
December 28, 2019

You can use this code to do it (as the Signed script of your signature field):

 

var f = event.target;
if (f.signatureValidate()==4) {
	var Info = f.signatureInfo();
	this.getField("SigName").value = "Signed by: " + Info.name;
	this.getField("SigDate").value = "Signed on: " + Info.date;
} else {
	this.getField("SigName").value = "";
	this.getField("SigDate").value = "";
}
ls_rbls
Community Expert
Community Expert
December 28, 2019

Thank you so much!!

 

I've spent literally 8 to 12 months trying to figure this out.

 

 

 

 

try67
Community Expert
Community Expert
December 28, 2019

You're very welcome!

ls_rbls
Community Expert
Community Expert
December 18, 2019

Hi,

 

I've been trying to work on similar with  a PDF form of my own.

 

I've recently came accross this possible solution but I haven't tested it on my end:

 

https://experienceleaguecommunities.adobe.com/t5/Adobe-LiveCycle-Questions/Create-digital-initials-after-signing-a-form-using-a-signature/qaq-p/158630 

 

 

This is an old thread for the date , there is a very short script that works for me for the date part:

 

https://community.adobe.com/t5/acrobat/can-acrobat-auto-populate-a-date-field-upon-digital-signature-of-a-form/td-p/4524073 

 

 

Si when you say digital signature I assume you're referring to electronic signature in the context of digital certificates by which certificate validation and encryption are involved.

 

You may also need to dig deeper on how to use signatureInfo part in your script to get first, middle, last names appropriately from  such digital certificate signatures.

 

 

try67
Community Expert
Community Expert
December 28, 2019

I don't see why this is necessary. The signature field itself already contains the name of the person who signed it, as well as the date it was signed...

ls_rbls
Community Expert
Community Expert
December 28, 2019

I know but I personally have a similar issue with the packet that I shared with you.

 

I am working with another packet that can exceed over 30 forms that need digital signatures.

 

Next to the signature field the signer have to type in their full name and select a date. Those are governement forms, so it is a requirement for yhe user to inout their name and date and then digitally sign with a certificate.

 

The signing authorities are not necessarily savvy on how to apply signature workflow, so as a workaround this would allow the signer just to sign the field and not  to worry about typing their  names and manually selecting dates.