Hello,
I have been trying to set a Multi-Select field as required based on the value of another field. I can get it working for other fields, but struggling with Multi-select.
In this example, for non-multi-select: If 'Release Notes Status' = 'Include - Finalized', then 'Release Notes Title' is required. How do I tweak it for multi-select fields?
Script on 'Release Notes Status' field:
def ReleaseNotesStatus = getFieldById(fieldChanged)
def additionalInfo = getFieldByName("Release Notes Title")
def option = "Include - Finalized" // the option you want to check
def errorMsg = "Required" // the error message you want shown
if (ReleaseNotesStatus.value == option) {
if (!additionalInfo.value) {
additionalInfo.setError(errorMsg)
}
} else {
additionalInfo.clearError()
}
Script on 'Release Notes Title' field
def cf = getFieldByName("Release Notes Title")
if (cf.value) {
cf.clearError()
}