Expand my Community achievements bar.

Can hide a button, but not a textfield

Avatar

Former Community Member
Is this a bug, or am I missing something trivial?



1. Create an empty form with Adobe Designer 8 ES, and choose the Acrobat Reader 7 format for saving the file.

Rename the form "form1" (if it is not the case already).

2. Place a textfield and rename it Textfield1

3. Place a button and rename it Button1

4. Place another button and change the dispalyed text to "Hide", and associate the following javascript to the 'click' event:

xfa.form.form1.Textfield1.presence="invisible";

xfa.form.form1.Button1.presence="invisible";



Try this form. When you click the "Hide" button:

Button1 is hiddin

but Textfield1 remains visible.



Any idea?
2 Replies

Avatar

Former Community Member
I just tried it and it works fine for me. Which version of the Designer and which version of Acrobat are you using to view the form?

Avatar

Former Community Member
Solved... the form was not dynamic.

Solution: Tools > options > managment of document : File type -> XML dynamic form

(transltated from a localized version, sorry if the labels are actually diffenrent)