Skip to main content
Participant
August 26, 2021
Question

Adobe Acrobat custom javascript form fields

  • August 26, 2021
  • 2 replies
  • 1815 views

I am having a difficult time in creating custom javascript code for adobe acrobat form fields.

 

I need to make fields invisible until a client fills in the signature field. ***clients signs in the signature field and then form fields below the signature field show up. Screenshot of PDF, shown below for reference.

 

 

 

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
August 26, 2021

Make the fields hidden and then apply the following code under the Signed event of the signature field:

 

this.getField("NameOfEntity").display = display.visible.

 

Use the actual field name in the quotes, of course.

Duplicate that line as needed, once for each field you want to show.

Amal.
Community Manager
Community Manager
August 26, 2021

Hi there

 

Hope you are doing well and  sorry for the trouble. As described, you need to make fields invisible until a client fills in the signature field. Clients signs in the signature field and then form fields below the signature field show up. using the JavaScript.

 

Please checkout the help page https://acrobatusers.com/tutorials/javascript_console/ for information about using the JavaScript.

 

Hope it will help

 

Regards

Amal