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

How do I do the opposite of this?

grlintheworld
Registered: Dec 21 2009
Posts: 66

(right now this script turns the fields ON when the button is checked. I need it to turn the fields OFF when the button is checked).

var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("LblShippingInfo").display = nHide;
this.getField("LblShippingStreet").display = nHide;
this.getField("ShippingStreet").display = nHide;

My Product Information:
Acrobat Pro 9.2, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Switch the two statements after the ? in the first line.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com