Checkbox to hide subform not working
i have think simple dilemma. have checkbox used show/hide subform when checked/unchecked.
however, none of code have written seems work. checkbox object in page1 , not wrapped in subforms. subform has 2 text fields in it. properties of checkbox have been set binding values 1 checked, 0 unchecked. fields in subform have presence set "invisible" not want show these fields on form (unless box checked).
my code is:
form1.page1.newspaper::click - (javascript, client)
if (this.rawvalue == 0) {
xfa.resolvenode("form1.page1.newspaper_subform").presence = "hidden";
}
else {
xfa.resolvenode("form1.page1.newspaper_subform").presence = "visible";
}
this code in click event under javascript. form saved adobe dynamic xml form. using adobe xi pro , lc es4
i can make work in action builder, want subform go hidden when unchecked.
obviously, newbie in java script, insights/assistance may have appreciated.
using checkbox change_event more convenient trying do
More discussions in LiveCycle Forms
adobe
Comments
Post a Comment