Survey question using checkbox and hidden question to get different score depending on the number of choices made

I have survey questions each framed with format as below. When selection
is none the score is be 1, one selection out 4, the e score is 2, and
so is others as appear on the table below. I have been trying to
represent this information on Cammcare survey using checkbox and the
hidden question to get this result but only get the score of 1 and others
0 using nested ifs. Any support /advice on how to go about this is much
appreciated.

Regards

Andrew

1

2

3

4

1. The area around the school is clean/hygienic

*Tick *the specific conditions that exist within 10 m and circle the code
below.

□ Open defecation or urinating area is absent

□ Stagnant water or damp ground is absent

□ Garbage dump is absent

□ Open drain is absent

0 ticks

1 absent

2 absent

3 or 4 absent

Hi Andrew,

You can use the count-selected
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-count-selected
function
to accomplish this task along with if() statements.

··· On Thu, Dec 7, 2017 at 12:33 PM, Andrew Ogongo wrote:

I have survey questions each framed with format as below. When
selection is none the score is be 1, one selection out 4, the e score
is 2, and so is others as appear on the table below. I have been trying
to represent this information on Cammcare survey using checkbox and the
hidden question to get this result but only get the score of 1 and others
0 using nested ifs. Any support /advice on how to go about this is much
appreciated.

Regards

Andrew

1

2

3

4

1. The area around the school is clean/hygienic

*Tick *the specific conditions that exist within 10 m and circle the
code below.

□ Open defecation or urinating area is absent

□ Stagnant water or damp ground is absent

□ Garbage dump is absent

□ Open drain is absent

0 ticks

1 absent

2 absent

3 or 4 absent


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.