Problems with checkbox questions

Dear all.

I am writing a display condition for a question within an survey I did
through Commcare.
The question is a checkbox type, I want to display a following question
only if the person chooses 1 specific option plus any of the others from
the checkbox list.

For example:
I have these answers: apple, banana, peach and strawberry. My idea is to
pop-up a following question only when the person chooses strawberry AND any
of the others (it can be one, two or the three other options at same time).
It is mandatory to choose strawberry.

Hope is clear!

Thank you in advance for your support.

Best,

DR

Hello,

The count-selected()
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-count-selected
function
should do exactly what you're looking for.

Cheers,
Will

··· On Thu, Jun 15, 2017 at 9:43 AM, Donald Richards wrote:

Dear all.

I am writing a display condition for a question within an survey I did
through Commcare.
The question is a checkbox type, I want to display a following question
only if the person chooses 1 specific option plus any of the others from
the checkbox list.

For example:
I have these answers: apple, banana, peach and strawberry. My idea is to
pop-up a following question only when the person chooses strawberry AND any
of the others (it can be one, two or the three other options at same time).
It is mandatory to choose strawberry.

Hope is clear!

Thank you in advance for your support.

Best,

DR

--
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.

Thank you William,

It worked! I used the selected function AND the count-selected.

Best,
DR

··· El jueves, 15 de junio de 2017, 15:45:45 (UTC+2), William Pride escribió: > > Hello, > > The count-selected() > function > should do exactly what you're looking for. > > Cheers, > Will > > On Thu, Jun 15, 2017 at 9:43 AM, Donald Richards <herr.e...@gmail.com > wrote: > >> Dear all. >> >> I am writing a display condition for a question within an survey I did >> through Commcare. >> The question is a checkbox type, I want to display a following question >> only if the person chooses 1 specific option plus any of the others from >> the checkbox list. >> >> For example: >> I have these answers: apple, banana, peach and strawberry. My idea is to >> pop-up a following question only when the person chooses strawberry AND any >> of the others (it can be one, two or the three other options at same time). >> It is mandatory to choose strawberry. >> >> Hope is clear! >> >> Thank you in advance for your support. >> >> Best, >> >> DR >> >> -- >> 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-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi
Just out of curiosity, if it is mandatory, why ask? This is data you knew
before going to the field so it should already be in your database.

Yaw

··· On 15 June 2017 at 14:04, Donald Richards wrote:

Thank you William,

It worked! I used the selected function AND the count-selected.

Best,
DR

El jueves, 15 de junio de 2017, 15:45:45 (UTC+2), William Pride escribió:

Hello,

The count-selected()
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-count-selected function
should do exactly what you're looking for.

Cheers,
Will

On Thu, Jun 15, 2017 at 9:43 AM, Donald Richards herr.e...@gmail.com wrote:

Dear all.

I am writing a display condition for a question within an survey I did
through Commcare.
The question is a checkbox type, I want to display a following question
only if the person chooses 1 specific option plus any of the others from
the checkbox list.

For example:
I have these answers: apple, banana, peach and strawberry. My idea is to
pop-up a following question only when the person chooses strawberry AND any
of the others (it can be one, two or the three other options at same time).
It is mandatory to choose strawberry.

Hope is clear!

Thank you in advance for your support.

Best,

DR

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.