Skip to main content
Participating Frequently
January 30, 2024
Answered

Acrobat PDF Form Text Field Greyed out if user select YES or NO

  • January 30, 2024
  • 1 reply
  • 1181 views

Hello,

 

I created a PDF Form on which there is a Text field named "Moderator". Above this field are a Checkbox YES and a Checkbox NO. If the user selects YES, then I want the Text field "Moderator" to be available for the user to enter information in the field. If the user selects the Checkbox NO, the the field "Moderator" should be greyed out.

 

Can someone point me in the right direction on how to accomplish this?

 

Many thanks,

 

Luke

This topic has been closed for replies.
Correct answer Thom Parker

You have a couple of differnt options for graying out fields.  In either case you'll need to set the field to ReadOnly, which is simple. Its the coloring that is difficult because Adobe didn't set this up to be automatic.

One option is to actually change the field colors. Here's an article on the topic, and an example file.

https://acrobatusers.com/tutorials/js_disabling_fields/

 

The other options is to cover the field with a translucent gray  rectangle annotation.  This option is easier in a way, but still requires some scripting skills. 

 

 

 

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 30, 2024

You have a couple of differnt options for graying out fields.  In either case you'll need to set the field to ReadOnly, which is simple. Its the coloring that is difficult because Adobe didn't set this up to be automatic.

One option is to actually change the field colors. Here's an article on the topic, and an example file.

https://acrobatusers.com/tutorials/js_disabling_fields/

 

The other options is to cover the field with a translucent gray  rectangle annotation.  This option is easier in a way, but still requires some scripting skills. 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Luke5EC3Author
Participating Frequently
January 30, 2024

Thank you Thom. Will look at your article.

 

Luke