I've seen example code in FormCalc of:
CheckBox1.presence="invisible"
but it just doesn't make the checkbox invisible.
Just to make sure I wasn't doing anything foolish I started out with a functioning pdf from your web site http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ButtonPresence.pdf which demonstrates the ability to make a button disappear. I know that this example uses JavaScript
That example works for me. So the next thing I did was edit the form in LifeCycle and drop a checkbox on to the form and add to the Button[1] click event the line:
CheckBox1.presence="invisible";
That didn't work. Just for a sanity check I dropped another Button on the form and added the line:
Button5.presence="invisible";
That works!
Checkbox is not the only object that I can't make invisible. I have tried a text object, a text field object, and a drop down list object. The only effect I get is the arrow for the drop down list object becomes invisible.
Are you seeing any errors in the Console Window?
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script