I have a scripted field that calculates the product of 3 custom number fields. This works fine but I really need to restrict the input to the 3 number fields to only allow a 1,2, or 3 to be entered. I've tried radio buttons and select list but they aren't treated as numbers so then my scripted field doesn't work.
Can anyone suggest how I can restrict the input and have them be recognized as numbers?
Here is my current script:
def Risk_Severity = getCustomFieldValue("Risk Severity")
def Risk_Probability = getCustomFieldValue("Risk Probability")
def Risk_Detectability = getCustomFieldValue("Risk Detectability")
if (Risk_Severity) {
return (Risk_Severity * Risk_Probability) * Risk_Detectability
}
else {
return null
}
Thank you,
Jeannette