Maybe a typical newbie problem, but...
I try to create an expandable section in a PDF form using Designer 7. The
dynamic section is a number of text and interactive form fields that are all
placed within a subform named "MySubform". My idea is to have a checkbox
"MyCheckbox" that controls visibility of the dynamic section.
I tried the following code in the MyCheckbox::change script (JavaScript,
client-side):
if (this.rawValue == 1)
MySubform.presence = "visible";
else
MySubform.presence = "hidden";
What I experience is that when I preview the PDF form in Designer or when I
open the PDF with Acrobat 7, the subform is *always* displayed regardless of
the checkbox value. When I query the subform's presence attribute, I see
that is is correctly set to "hidden" by the above script, but Acrobat 7
seems to ignore the "hidden" setting.
What am I doing wrong?