Field visibility seems inverted
im trying to hide one field when a dropdown list has a particular value.
I have an on validate script as follows
var fdtime = this.getField("FDTime1");
var fdelement = this.getField("FDElement1");
if (fdtime && fdelement)
{
if (fdelement.value == "CStSq")
{
fdtime.display = display.hidden;
}
else
{
fdtime.display = display.visible;
}
}This works, but when the dropdown list has my comparison value "CStSq" the time field is visible and when It doesn't have the value the time field is visible. The exact opposite of what I expect this code to be doing.