I am trying to use behaviors to show a hidden (hideable text field) called “Additional Info.”
This field is supposed to show if the reporter on the Create screen clicks “Yes” on the following radio buttons:
JCCC
J.Crew Rewards
Unfortunately, it doesn’t work. It seems as if it should be pretty easy. Can someone please look at the below syntax and image attached and tell me where I screwed up?
Right now I’m just trying it with one of the radio buttons.
def jccc = getFieldByName("JCCC")
def jcrewrewards = getFieldByName("J.Crew Rewards")
def additional = getFieldByName("Additional Info.")
if (jccc.getValue() == "Yes")
{
additional.setHidden(false)
}