Regarding your first issue:
natascia:
I have a multiple-choice query, I assigned a value to each answer but it is not possible to assigning the same value to different answers and neither making a sum of single values assigned, even when those values are completely different one from another.
For example:
Answer a: value 0 (incorrect)
Answer b: value 1 (correct)
Answer c: value 3 (correct)
If the person chooses the two correct answers, he/she will have a total score of 4. But I do not know how to make that sum and it seems it is possible to have only a single value.
Yes, it can be done. Try the following example as shown in the image below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
Calculation.xlsx (11.9 KB)
Regarding your second issue:
This is not possible as the name from the choices tab should be unique for that variable else you will see an error message. For more details, you could also have a look at the post discussed previously:
Hi @maggib ,
I found the duplicate that i have highlighted with yellow and marked the font with red within list_name lf3sx85 whose name prefer_not_to_answer is seen repeated twice within list_name lf3sx85. For your ease check row number 89 and 93 under choices tab.
[Image 1]
The principle behind this is that each list_name should have unique code under it’s associated name.
e.g. this is not allowed …
list_name
name
test
a
test
a
test
a
… but this is allowed …
list_name
na…