Skip to main content
Participating Frequently
February 16, 2025
Answered

Hidden/Visible text based on dropdown

  • February 16, 2025
  • 1 reply
  • 278 views

I require code to show text whether Yes or No or 'Blank' is selected in a dropdown

 

if DS PSV = Yes then Text11 visible

if DS PSV = No or 'blank' then Text11 hidden

 

Correct answer try67

As the custom Calculation script of that text field enter this:

event.target.display = (this.getField("DS PSV").valueAsString=="Yes") ? display.visible : display.hidden;

1 reply

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

As the custom Calculation script of that text field enter this:

event.target.display = (this.getField("DS PSV").valueAsString=="Yes") ? display.visible : display.hidden;