Hi all I have two single select fields.
Field A "Is color blue?"
if yes what shade of blue?
2nd field is hidden based and based on the selected answer of the first question, second question is shown.
if yes, then tell us what shade of blue. I have this code working where the second question is freeform text, is this possible with two single select fields as it is not working for me.
if yes what shade of blue?
def requireCode = getFieldById(getFieldChanged())
def requireCodeValue = requireCode.getValue()
def codeLocation = getFieldByName("Duration of hold")
if ('Yes' in requireCodeValue) {
codeLocation.setHidden(false)
codeLocation.setRequired(true)
} else {
codeLocation.setHidden(true)
codeLocation.setRequired(false)
}
Thank you,
Kayode