How to hide the other custom field based on the options selected in cascade select list field using behaviour?

Krithica Gowri Shankar March 20, 2017

We have 2 fields A, B.

A- cascading select list. (options :a:1, a:2)

B- text field.

If i choose a:1 the field B should be hidden.

We use behaviour plugin for this but it is not working.

def A= getFieldByName("A")

def B= getFieldByName("B")

log.debug("A" + A.getValue())

if (A.getValue() == ["a":"1"])

{

B.setHidden(true);

}
else
{
B.setHidden(false);

}

Please let us know how to achieve it.

1 answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events