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.
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