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

check boxes, javascript

argylem
Registered: Feb 18 2007
Posts: 2

I want to ask this in JavaScript Corner, but it won't recognize me as a user.
 
I have two check boxes, one blue, one red. I want the boxes to be mutually exclusive and I want them to display their information in another part of the form that is a text field.
 
I have another set of check boxes I want to be mutually exclusive (6 of them) and I wish for their information to display in another text field on another page in the document.
 
I have tried several scripts I found here, but they only work once, and then only the last element is displayed.
 
Any help would be appreciated.
 
(This is a great site!)
 
I am using Acrobat 7 with XP.

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You havn't said what kind of form you are using, traditional PDF forms or LiveCycle Designer forms. The methodologies for each are very different.

Let say you're using traditional AcroForms. To make the boxes mutually exclusive you would give all boxes in a set the same name, but different export values. Then to use changes on the check box for setting a text field, you put a script in the "MouseUp" event of each checkbox.

Hope this helps,
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script