Skip to main content
Participant
March 25, 2025
Question

Lier mes informations de signature lorsque je coche une case

  • March 25, 2025
  • 2 replies
  • 407 views

Bonjour

 

Dans Adobe Pro, j'aimerais faire suivre les informations de ma signature numérique sur une case que je coche dans un formulaire. Nous sommes plusieurs à travailler sur le même document et nous devons cocher des cases, mais nous aimerions savoir de case cochée en case cochée qui a coché ladite case. Donc en pointant sur la case cochée les informations comme celle de la signature numérique serait visible.

Dès que nous ne pointerions plus sur la case, les informations ne seraient plus visibles.

Merci

2 replies

ls_rbls
Community Expert
Community Expert
April 3, 2025

Hi @ellen_9899 ,

 

++Adding to @creative explorer valuable guidance, you may also  use a combination of Acrobat's built-in features with a JavaScript script.

 

For instance, you may use a read-only hidden text field in combination with a checkbox. In which case,  when the desired checkbox is checked, the hidden text field becomes visible, displaying the digital signature information, and when the checkbox is unchecked it resets (or clears) the text field and  hides it. 

 

However,  a more important question is, What type of digital signature infomation exactly do you need to be displayed? 

 

  • Do you need the signer's full name (First, Middle Initial, and Last name)?
  • Do you need only the date and timestamp at signing time (and on which format it should be displayed , US or European format?
  • Do you need to display the signer's email address? 

 

Or, do you need to display all of the above?

 

Although this is all possible with a script, it may require some scripting knowledge in how to extract the desired raw information from the signer's digital certificate and be able to output that data on a text field object in a human-readable format .

 

 

Participant
April 3, 2025

Hello, merci des conseilles.  En fait, j'aurais besoin de voir le nom complet et la date et comment lier le tout. 🧐

ls_rbls
Community Expert
Community Expert
April 4, 2025

Hello again @ellen_9899 ,

 

You can try something like the script below which is executed entirely from the checkbox:

 

var cb = event.target;
var f = getField( "Signature1" );
f.signatureValidate();
var sigInfo = this.getField("Signature1").signatureInfo();

if(sigInfo.status == 0){
this.resetForm(["Check Box3", "Text2"]);
this.getField("Text2").display = display.hidden;
}


if(sigInfo.status == 4){

var leNom  =  sigInfo.certificates[0].subjectCN;
var laDate =  {dateStamp : util.printd("yyyy-mm-dd", new Date((util.scand("ddd mmm dd yyyy HH:MM:ss ZZ",  sigInfo.date ))))};


this.getField("Text2").value = "Nom du signataire: " + leNom +"\n\nSigné: " + laDate.dateStamp;

(cb.value =="Off") ? this.getField("Text2").display = display.hidden : this.getField("Text2").display = display.visible
 
}

 

It does a few things, it validates the status of the signature field, for example if the signature field is signed or unsigned:

 

  1. The script will check first if the signature field is unsigned, in which case ticking the checkbox won't display or do anything.
  2. Next, the script will check if the signature field is signed.
  3. If it is signed, the script will proceed to extract the signer's full name from the digital certificate's seed value as it appears in the properties of the signature appearance modified by the signing user.
  4. Additionally, the script will also extract the exact date stamp that was captured at signing time.
  5. After all of this information is collected, the script will allow to tick the checkbox to display or hide the desired information (full name of signer and date) in a read-only text field (with its properties set to Multi-Line and hidden by default).

 

For your convenience, here is an example of the PDF with the example script: 

 

creative explorer
Community Expert
Community Expert
March 26, 2025

@ellen_9899 Acrobat Pro doesn't have an automatic built-in feature that directly links a checkbox to the dynamic display of digital signature details in the way you've described—but, you could try a work-around with javaScript

m
Participant
April 3, 2025

Merci beaucoup du retour, ont va tenter le tout 🙂