Answered
I am not sure if this is the place to post this question, if is not. please forgive me.
This is the question I need help with.
I have a colum of 3 checkboxes
I also have a text box in an adjacent colum.
the textbox is to be hidden until all 3 checkboxes are independently selected (there is no preferencial order in which the checkboxes are selected, but the text box cannot be displayed unless the third checkbox is selected)
Does anyone know how I can make this happen?
event.target.hidden = !(this.getField("Chk1").isBoxChecked(0) && this.getField("Chk2").isBoxChecked(0) && this.getField("Chk3").isBoxChecked(0));
The down side of doing it this way is that it's another calculation event. Calculation events are called everytime any field on the form is changed. So another more efficient way to do this(from an operational standpoint) is to put individual testing scripts in the MouseUp events of the check boxes. But this is also more of a hassle and less supportable because you have 3 scripts instead of one.
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]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script