I am having trouble wrapping my head around this. The ITSM Request screen is made BEFORE an issue exists. So I think when I am calling field values, they are always showing as null. Is this even possible?
I have tried many different things. But currently I am trying to make a behavior and this is more or less what I am trying. If I run this as an initializer, it ALWAYS hides the Description field. I believe this is because the getFieldByID doesnt exist yet on the ITSM request screen?
(Sorry for the lack of a code block, not sure how to do that here)
def selectListField = getFieldById("Exception Template")
def selectListValue = selectListField.value
def textField = getFieldByName("Description")
if (selectListValue == null) {
textField.setHidden(true)
} else {
textField.setHidden(false)
}
Hoping someone can help guide me!