Hi Team,
I have a requirement to disable the Custom field "Group" and "User" once the value from "option" custom field is returned as "Add Group".
Below is the piece of code i am trying. And it is not working. I need to disable this at screen level. A early reply will be appreciated as need this functionality for my prod release.
def option = getFieldById("customfield_18404")
def Group = getFieldById("customfield_18405")
def User = getFieldById("customfield_18406")
String optionVal = option.getFormValue();
if(optionVal.equals("Add Group")){
Group.setReadOnly(true);
} else {
Group.setReadOnly(false);
}
if(optionVal.equals("Add Group")){
User.setReadOnly(true);
} else {
User.setReadOnly(false);
}