Skip to main content
Participating Frequently
September 30, 2020
Answered

Conditional display of signature fields, depending on a checkbox

  • September 30, 2020
  • 1 reply
  • 1057 views

Hello everyone,

i would like to show a signature field "CEO" in Adobe Acrobat Pro CC only if the checkbox, "Approval by CEO nessary" is checked.

The background is that the signature of the CEO is not always required. The document can only be locked if all signatures in a form are filled in.

 

Thanks a lot

 

Bastian

This topic has been closed for replies.
Correct answer try67

The code to use:

 

this.getField("Signature39").display = (event.target.value=="Off") ? display.hidden : display.visible;

 

However, use the event I mentioned (Mouse Up).

1 reply

try67
Community Expert
Community Expert
September 30, 2020

As the Mouse Up event of the check-box add this code:

this.getField("CEO").display = (event.target.value=="Off") ? display.hidden : display.visible;

Participating Frequently
September 30, 2020

Thank you very much for the quick answer. Unfortunately I'm not so fit in JavaScript.
Can you write down the code I have to enter in the checkbox Approval by CEO necessary. ->Mouse over

Field names:
Checkbox = Check Box11

Field to be hidden if Check Box11 is deactivated.
Field Name: Signature39

 

thx
Bastian

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 30, 2020

The code to use:

 

this.getField("Signature39").display = (event.target.value=="Off") ? display.hidden : display.visible;

 

However, use the event I mentioned (Mouse Up).