Radio button calculations

Hi, I am creating a survey where there are 3 radio button sets that need to be averaged and then presented in a text field as a rounded whole number. The button names match the labels. It would work like this (the lowercase o represent the radio button):


Question 1

o 0

o 1

o 2

o 3


Question 2

o 0

o 1

o 2

o 3


Question 3

o 0

o 1

o 2

o 3


Results:


Average score = X


I tried to set the result variable X to this: var(Question1)+var(Question2)+var(Question3)


Instead of a sum, I am getting: "1+2+3" in the text field. I'm sure it is treating the numbers as strings, I just don't know what to do about it. I haven't gotten to trying to average them or round them into whole numbers.


Is this possible with radio buttons?

Discussion (2)

It's possible when using the "old" way and adding each Question variable to a "result" variable with a separate action.


Tim

OK, I found a long winded solution of selecting the Add to Variable type in the Modify Variable action and adding each sub variable separately. Lastly I used the Divide Variable By and Round Variable types. The good news is I didn't have to convert any text to numbers. The Round Variable Type is quite handy.

Discussions have been disabled for this post