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

hiding fields with check box

johnmolina
Registered: Mar 27 2008
Posts: 76

Good day

just trying to display fields when a check box is checked.

I hide the fields on ready form

form1.#subform[0].CheckBox1::ready:form - (JavaScript, client)

TextField1.presence = "hidden"

That works.

When I click check box, nothing happens with code below

form1.#subform[0].CheckBox1::exit - (FormCalc, client)

if ($.rawValue == 1) then
TextField1.presence = "visible"
else
TextField1.presence = "hidden"
endif

I know this is simple, but am just missing something. thanks for any help.

My Product Information:
LiveCycle Designer, Windows
hcorbin
Registered: Aug 11 2009
Posts: 57
Hi,

First make sure the form is saved as an Adobe Dynamic XML Form. Also, the script lives in the exit event of the check box so make sure to exit the field to see the presence of TextField1 updated. You can place the script on the change event if you want to see the presence of TextField1 updated as you check/uncheck the check box.

Hélène