I'm tring to add java to a checkbox that, when the checkbox is checked, will display a field. And when that checkbox is unchecked will hide that field. I have the feeling that would not be too difficult but I can't get the field to become hidden when the checkbox becomes unchecked.
Not sure what your code says, but I have used the same thing on my form. Try the below code:
var showHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("Text036").display = showHide;
this.getField("input21").display = showHide;
Hope that helps!
It worked like a charm! Thanks so much.