Skip to main content
Participating Frequently
Feb 16, 2025 2:17 PM UTC
Answered

Hidden/Visible text based on dropdown

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

 

try67
try67Correct answer
Community Expert
Feb 16, 2025 3:09 PM UTC

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
Feb 16, 2025 3:09 PM UTC

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

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

Translate