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

Hide List Box if

New Here ,
Feb 12, 2025 Feb 12, 2025

I have two list boxes:  Environment and Services.

 

In the "Environment" list box, I have P, N, S as options. 

 

I would like the "services" list box to be disabled if they select S as an option.  Is that possible?

 

If not, do you have any advice as to what I could do instead of using a list box for the environments?  It must be possible to multi-select so I have considered checkboxes, but I am unsure if a calculation can be used on a checkbox.  Please help.  Thank you so much for any assistance.

TOPICS
JavaScript , PDF , PDF forms
167
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 ,
Feb 12, 2025 Feb 12, 2025

As the custom calculation script of "services" enter the following:

 

event.target.readonly = this.getField("Environment").valueAsString=="S";

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 ,
Feb 12, 2025 Feb 12, 2025

As the custom calculation script of "services" enter the following:

 

event.target.readonly = this.getField("Environment").valueAsString=="S";

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
New Here ,
Feb 12, 2025 Feb 12, 2025
LATEST

Thank you so much! 🙂

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