Hi, supernoob here, and I'm trying to get Acrobat forms to do something that is the reverse of the usual process. (I'm using Acrobat Professional 7 on OSX 10.4)
I have a pulldown menu in a combo box with 18 items, and when the user selects one, I want it to populate 4 text fields AND turn on a set of multiple check boxes that are part of a diagram. Each item will have its own combination of checkboxes that will be checked.
Now -- I've figured out how to create an array and the text fields fill exactly as they should, but I cannot figure out how to turn on and off the checkboxes.
Again, to clarify, I want the action to check and uncheck the check boxes, not the other way around. Any help or code would stop me from banging my head against the wall. Thx!
this.getField("Checkboxname").value = "Off";
That will turn it off. Similarily, change the value to the value of the checkbox/radio button and it will select that.
this.getField("Checkboxname").checkThisBox(0,true);
Another option for you too. 0 is the instance number. If it's a checkbox, then you can set it to false and uncheck it. If it's a radio button, it cannot be unchecked with this method.
Here's a helpful reference:
http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf