I have a field called category and subcategory which has option "Location". if select location which has two options Hyderabad, Bangalore. i want to hide option Bangalore. have a code below
def abuFF = getFieldByName("")
Object t1=abuFF.value
ArrayList al1 = new ArrayList();
al1 = (ArrayList) t1;
String Cat=al1[0].toString()
String subCat=al1[1].toString()
if (subCat.value == "Bangalore") {
subCat.setHidden(true)
}
else {
subCat.setHidden(false)
}
Please let me know how to hide an option from the field.