Check Box Java Script won't work unless I open and close form tool
A Java Script Checkbox that makes a field visible or hidden based on the condition is not functioning properly. When first opening the form, the box does nothing. If I click on "Prepare Form" tool and immediately close, the button works as it should. If Adobe is closed and the form is reopened, the checkbox stops working again.
var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("Flex Line Type").display = nHide;
