Show/hide multiple fields on drop-down choice using if else
Goal is to show or hide three fields depending on a drop-down choice. Show if X, hide if Y.
Getting a syntax error on line 6 when adding to the mouse-up trigger of the dropdown field.
Are multiple actions allowed for each if condition?
if(event.target.value = "Yes")
getField("Top_inches").display = display.visible;
getField("Top_numerator").display = display.visible;
getField("Top_denominator").display = display.visible;
else
getField("Top_inches").display = display.hidden;
getField("Top_numerator").display = display.hidden;
getField("Top_denominator").display = display.hidden;
