Apologies I didn't know how best to work the title, hopefully I can explain better below:
Essentially I have some code below:
def dropDown = getFieldById("customfield_10052")
log.debug("dropdown value" + dropDown.getValue())
if (dropDown.getValue() == "Art") {
dropDown.setError("cannot choose art here")
} else {
} I am essentially checking a custom field for if its value is Art and choosing to display an error message if it is.
My problem is, if the user ever simply selects Art even with the intention of later selecting something else, the error message shows and wont go away, even if the user selects a different value.
Is there something I could do within the else to remove the error message/ re initialize the form?
Many thanks for the help.