These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Radiobutton wont check anymore

sugbo
Registered: Oct 16 2009
Posts: 16
Answered

I wonder if anybody can help me with this problem.

I have two radiobuttons (yes and no) and one textfield.

If I check the radiobutton-yes the textfield appears.

If I check the radiobutton-no I want the textfield to disappear and it should reset at the same time. That works fine.

But here the problem appears: when I click the radiobutton-no, the textfield-yes is being unchecked and the textfield disappears, only the radiobutton-no isnt checked and stays blank.

I use the following script:

if (this.rawValue=="1"){policy.presence="visible"}
else if (this.rawValue=="2"){policy.presence="hidden";
xfa.host.resetData("policy");

}

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can solve the problem if you use another script in the radio button list click event.

if (this.rawValue=="1"){xfa.resolveNode("form1.#subform.policy").presence="visible";}else{xfa.resolveNode("form1.#subform.policy").presence="hidden";xfa.resolveNode("form1.#subform.policy").rawValue == null;}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

sugbo
Registered: Oct 16 2009
Posts: 16
Thanks radzmar, it works!!