My survey contains a question group of 100 similar radio list questions. I am looking to add an equation question that reads the responses to 10 of these questions and sums the values of their answer option codes.
For example, assuming the radio list questions take the form:
Code:
Q:"What do you think of this statement?"
A:1."Completely disagree"2."Disagree"3."Somewhat disagree"4."Neither agree nor disagree"5."Somewhat agree"6."Agree"7."Completely agree"
… if survey participant answers "Disagree" for all question codes a1 through a10, I would like to write 20 to the database (2 ("disagree") x 10 (number of questions) = 20). The answers are ordered consistently, so a solution that uses the answer index instead of the answer option code is acceptable. I'm really looking to avoid using JavaScript.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
That worked exactly as hoped and is very clear. Thank you so much! In case anyone else runs into a similar problem, there is some relevant discussion of sum() and NAOK in
Expression Management HowTos
.