I want to change the value of a drop down field on the screen when another field has been changed. Why does this not work?
def selectListConsent = getFieldById(getFieldChanged())
selectListConsent.clearError()
String selectListConsentValue = selectListConsent.getValue()
def requiredValue = (selectListConsentValue == "ValueXXX")
def cfImpact = getFieldByName("All Meters Impacted")
if (requiredValue == true){
cfImpact.setFormValue("ValueZZZ")
}