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
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events