I am new to ODK and XLSForms.
I have several questions and based on the answers, I need to calculate a score.
I have 17 questions, each time a person answer yes, I need to add 2 points into an integer field.
So I have:
type name label appearnce required
select_one yes_no1 q1 //question here //appearance quick //required yes
...
select_one yes_no17 q17 ...
And here is the score field:
type name label
calculate total Total
This is my first assignment in my job, and can't figure how to calculate and change value according to selected answer.
EDIT
I added a calculation expression but can't know how to get the result because it didn't worked:
if ((${q8} = 'yes' orĀ ${q9} ='yes' or ${q11}='yes'), 2, 0)
So if question 8, 9 or 11 are answered as yes, add 2 points to current value, but the field didn't appeared at all. And still need to add if question 10, 12, 13 and 14 are answered with yes to add 1 point for each.