Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
15

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

Community Beginner ,
Jan 30, 2024 Jan 30, 2024

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

TOPICS
How to , PDF , PDF forms
874
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jan 30, 2024 Jan 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2024 Jan 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 30, 2024 Jan 30, 2024
LATEST

Thank you Thom. Will look at your article.

 

Luke

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines