Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a default option in drop down recognized using behaviours

Aaron Andrade
Contributor
February 8, 2022

I am making a field Hidden or not hidden based off a drop down selection. I can get it to work, but the default "None" in the drop down isn't recognized by my behaviour and doesn't Hide it or make it appear. Is there a way to code it so that it can read the default option? See code below:image.png

1 answer

1 accepted

0 votes
Answer accepted
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2022 edited

Hi @Aaron Andrade 

 

Try

 if (PTF.getValue() == null)

instead of the == "none"

Thanks,

Tim

Aaron Andrade
Contributor
February 8, 2022 edited

Tim,

         Thank you for the help! That did work for me, I just can't believe I didn't think about doing that. It usually is the simple things. Thanks again!

Like Tim Perrault likes this

Suggest an answer

Log in or Sign up to answer