this script will not work and I can't think of another thing to try:. Basically, there are 2 fields in play (Priority and Business Justification).. If Priority is set to P1, I want the multi-line text field called Business Justification to be required. I have gotten very similar scripts to work in the past but this one for some reason is driving me crazy... when I do select P1, nothing happens to the Business Justification field)... very frustrating...likely a simple thing but I would appreciate the help.
def formField = getFieldByName("Priority")
def descField = getFieldByName("Business Justification")
def priority1 = formField.getValue()
if (priority1.getValue() == "P1") {
descField.setRequired(true)
}
else {
descField.setRequired(false)
}