It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Behaviors - Setting conditionally hidden field mandatory only when visible

Hi

 

I have a field that is only visible if another field is set to a specific option on the previous step. What I'm unable to do is have the conditional field be mandatory ONLY when it's visible

 

Here's my current script

 

 def dropDown = getFieldById("customfield_12200")
def conditionA = getFieldById("customfield_13105")
log.debug("dropdown value" + dropDown.getValue())

if (dropDown.getValue() != "SC-229") {
conditionA.setHidden(true);
}

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Cloud Cafe Ep. 1: Getting started with the Atlassian ecosystem

Welcome to Cloud Cafe – our video series about cloud app development on Atlassian. ✨ Ever heard the term Atlassian ecosystem and wondered just exactly what it meant? Grab a cup of ☕ and join ...

63 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you