Skip to main content
Participant
February 12, 2025
Answered

Hide List Box if

  • February 12, 2025
  • 1 reply
  • 420 views

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.

Correct answer try67

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

 

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

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 12, 2025

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

 

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

Participant
February 12, 2025

Thank you so much! 🙂