Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Behaviors - Setting conditionally hidden field mandatory only when visible

Steve Letch July 17, 2019

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
AUG Leaders

Atlassian Community Events