Show/Hide fields based on checkbox that doesn't work
Hello everyone. Since I don't know anything of javascript and even if I checked other posts in this community, my field doesn't disappear.
So I have a checkbox called "another country" when the user selects this checkbox a dropdown menu should appear, called "select a location" with a list of other countries.
At the moment this is not working and I see both the checkbox and the field.
This is the script I've added:
// Show/hide select a location text fields
var nHide = another.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("Select a location").display = nHide;
// Show/hide select a location text field label overlays
this.getField("Overlay_1").display = event.target.value == "Off"? display.visible: display.hidden;
Can someone tell me what's wrong?
Thanks,
Alessia
