Skip to Content
0
Apr 22, 2008 at 06:59 PM

JavaScript to hide fields in Adobe Forms

9192 Views

Hello all,

I have a subform of type "Flow Content, Top to Bottom".

This subform is bound to a table containing several fields. I want the to hide a field if it is blank.

For example:

Name1

Name2

Name3

If Name2 is blank, it should just be:

Name1

Name3

My JavaScript that I have right now does not work but looks like this:

if (Name2.rawValue = Null)  { 
Name2.presence = "hidden";  
}

What am I doing wrong? Is it because it's a table and I have to access the Name2 field differently?

I am coding this in the Name2 "Initilize" Event? Should it be coded someplace else?

Thank You Very Much!

-Aaron