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

Hide/show (sub)fields with a checkbox - again

Asiante
Registered: Aug 20 2009
Posts: 32

Hi,

I am begging you for help.

I am trying to create PDF form, I want to hide some fields with a checkbox when they are not needed. (Exactly - field should be hidden/invisible if checkbox is off)

I've already tried several solutions but nothing works.
I hoped that my solution is here: http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=13447
but this script doesn't work in my form.
I even created sample form with only two objects: checkbox and numeric field and put this script:

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

if (CheckBox1.rawValue == 0) then
NumericField1.Presence = "visible"
else
NumericField1.Presence = "invisible"
endif

Where did I make mistake?

My Product Information:
LiveCycle Designer, Windows
Asiante
Registered: Aug 20 2009
Posts: 32
I can't believe it! For two weeks I haven't seen that my form is saved as a static! Now this script works. And almost in the way I want:)