Skip to main content
Participating Frequently
Sep 30, 2020 12:06 PM UTC
Answered

Conditional display of signature fields, depending on a checkbox

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Sep 30, 2020 1:05 PM UTC

The code to use:

 

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

 

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

4 replies

try67
Community Expert
Community Expert
Sep 30, 2020 12:50 PM UTC

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

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

Translate
Participating Frequently
Sep 30, 2020 1:01 PM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Sep 30, 2020 1:05 PM UTC

The code to use:

 

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

 

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

Translate