calculate value based on radio button selection
I'm working on an assessment tool which requires scoring for each of 15 questions based on values assigned to radio button options. I'd like each question to recieve one score in a hidden text field, so I can then get a sum for selected questions (i.e. questions 3, 6 and 12) as a subset score. Questions are labeled as "group1" through 15; Options are labeled "choice1" through 5. Here's an example question (value in parentheses):
In the past 10 days, how much were you bothered by a coworker?
- Not bothered (0)
- Slightly bothered (1)
- Bothered (2)
- Significantly bothered (3)
- Extremely bothered (4)
I figure the same script could be used for each questions, all are formatted the same way. Any help is appreciated.
