box checked = Reset text box
Hello,
I have a check box named "Box_APSOnlineReport" which when checked will display or hide a textbox called "TotalPages_APSOnlineReport". I'm using the following code:
var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden; this.getField("TotalPages_APSOnlineReport").display = nHide; this.getField("TotalPages_APSOnlineReport").display = nHide; this.getField("TotalPages_APSOnlineReport").display = nHide;
^ thank you try67!!! 🙂
I need additional code that when the box checked, (text field now visible), it will reset the text field. I have put a default text value of "?" for the text field, so once it's reset it should just display the default value... so the idea is that every time the box is checked and text field is visible, the user will see "?" and will enter the correct value.