Hi,
I want to set a field hidden based on another custom field using behaviour. But the hidden field is not showing up when i select Yes. Please see code:
//defining variable to get custom fields
def testscript_field = getFieldByName ("Tests Scripts / Test Results successful (Yes/No)")
def Signoff_path_field = getFieldByName ("Specify Test Scripts/UAT Signoff path")
//Retrieving the current field value as a String
def script_value = testscript_field.getValue() as String
def isOtherSelected = script_value
if(testscript_field == "Yes")
{
Signoff_path_field.setHidden(false)
}
else
{
Signoff_path_field.setHidden(true)
//Signoff_path_field.setRequired(true)
}
Thanks
Swarna