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

sum of 2 radio groups

HansPS
Registered: Mar 17 2008
Posts: 2

I have made my first adobe designer form/questionnaire and every thing works fine.

Now I would like to ad some validation to the user input.
the questionnaire have 20 questions and each question have the valor of 5 point/5% and each question have a A/B statement - so if you give 5 points to q1a then q1b most be given 0 points so that the total of q1 equals 5 point/5%.

I would like to do something like:

* on mouse out question x
* sum radio group A+B ≠5
* then pop up with instruction that each question must have the valor of 5 points

I do not know if this is the right way to go or if you could send me in the right direction.

thanks for your time and held
HansPS

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
First, you'll need to read some about doing calculations and just generally working with scripting and LiveCycle forms.

But I think you have a fairly easy solution. Each radio button group has a single value, depending on the selected radio button. The button values are set in the "Binding" tab on the properties panel for the Radio button group. These are the values you'll need to setup and check.

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