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

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

Community Beginner ,
Jan 30, 2024 Jan 30, 2024

Copy link to clipboard

Copied

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

Views

302

Translate

Translate

Report

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

correct answers 1 Correct answer

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 w

...

Votes

Translate

Translate
Community Expert ,
Jan 30, 2024 Jan 30, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you Thom. Will look at your article.

 

Luke

Votes

Translate

Translate

Report

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