Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Can't hide text field label..only text field

Avatar

Level 1

I'm trying to display text field boxes on a form to fill out when a box is checked.  I'm able to do this for the actual text field, but can't figure out how to hide then show the associated text field label.  Can you tell me what I'm doing wrong?

Thanks!

var nHide =

event.target.isBoxChecked (0) ? display.visible:display,hidden;

this.getField ("Name").display = nHide; this.getField

1 Reply

Avatar

Level 10

First of all, you're using Acrobat JavaScript in an XFA form, which doesn't work.

LiveCycle Designer has its own interpretation of JavaScript, which is different to Acrobat.

There is also a second scripting language called FormCalc available.

Its syntax is much easier to learn and is matches perfectly to manipulate XFA forms.

Check the help (F1 button) in Designer to get the Designers scripting guide.