ODK: Select Multiple with NONE or N/A as a Choice

Hello Community,

I have a scenario where a question is a Multiselect with the following choices as an example:

Choices: A,B,C,D,N/A

Users can select more than on choice e.g. A & C, however when the user wants to add another choice let say selects N/A then this action will unselect the choices A&C.

Problem: N/A cannot be selected if another choice is selected. If N/A is selected, only N/A should be allowed.

Please assist.

Regards,

Samuel.

Samuel,

Use a constraint where if n/a is selected, then count-selected(.) has to be 1.

Yaw

··· On Wed, Oct 5, 2016 at 7:27 AM, wrote: > Hello Community, > > I have a scenario where a question is a Multiselect with the following choices as an example: > > Choices: A,B,C,D,N/A > > Users can select more than on choice e.g. A & C, however when the user wants to add another choice let say selects N/A then this action will unselect the choices A&C. > > Problem: N/A cannot be selected if another choice is selected. If N/A is selected, only N/A should be allowed. > > Please assist. > > Regards, > > Samuel. > > -- > You received this message because you are subscribed to the Google Groups "ODK Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit-developers+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

First, Thanks for the reply Yaw, it was very helpful.
I really appreciate it. :slight_smile:
ALso thanks to Samuel who states so clearly the same problem i got. :slight_smile:

Second, I must apologize myself to take so long to answer, i was away from keyboard for a while but i'm back.

Thanks again. I love the unique kind of global teamworking achieved through open source communities. You're awesome!

Best regards from Mexico

··· On Wednesday, October 5, 2016 at 11:38:56 AM UTC-5, samuel...@gmail.com wrote: > Hello Community, > > I have a scenario where a question is a Multiselect with the following choices as an example: > > Choices: A,B,C,D,N/A > > Users can select more than on choice e.g. A & C, however when the user wants to add another choice let say selects N/A then this action will unselect the choices A&C. > > Problem: N/A cannot be selected if another choice is selected. If N/A is selected, only N/A should be allowed. > > Please assist. > > Regards, > > Samuel.

Samuel,

Use a constraint where if n/a is selected, then count-selected(.) has to be 1.

Yaw

Hello Community,

I have a scenario where a question is a Multiselect with the following choices as an example:

Choices: A,B,C,D,N/A

Users can select more than on choice e.g. A & C, however when the user wants to add another choice let say selects N/A then this action will unselect the choices A&C.

Problem: N/A cannot be selected if another choice is selected. If N/A is selected, only N/A should be allowed.

Please assist.

Regards,

Samuel.

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

Hi Yaw,
Any example of this mentioned function "if n/a is selected, then count-selected(.)"?

Thanks in advance

Neri

··· On Saturday, October 8, 2016 at 10:03:11 AM UTC-5, Yaw Anokwa wrote: > On Wed, Oct 5, 2016 at 7:27 AM, wrote:

Hi Neri,

Attached is an example.

Yaw

na_select.xlsx (30.2 KB)

··· On Fri, Nov 18, 2016 at 12:06 AM, wrote: > On Saturday, October 8, 2016 at 10:03:11 AM UTC-5, Yaw Anokwa wrote: >> Samuel, >> >> Use a constraint where if n/a is selected, then count-selected(.) has to be 1. >> >> Yaw >> >> On Wed, Oct 5, 2016 at 7:27 AM, wrote: >> > Hello Community, >> > >> > I have a scenario where a question is a Multiselect with the following choices as an example: >> > >> > Choices: A,B,C,D,N/A >> > >> > Users can select more than on choice e.g. A & C, however when the user wants to add another choice let say selects N/A then this action will unselect the choices A&C. >> > >> > Problem: N/A cannot be selected if another choice is selected. If N/A is selected, only N/A should be allowed. >> > >> > Please assist. >> > >> > Regards, >> > >> > Samuel. >> > >> > -- >> > You received this message because you are subscribed to the Google Groups "ODK Developers" group. >> > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit-developers+unsubscribe@googlegroups.com. >> > For more options, visit https://groups.google.com/d/optout. > > Hi Yaw, > Any example of this mentioned function "if n/a is selected, then count-selected(.)"? > > Thanks in advance > > Neri > > -- > You received this message because you are subscribed to the Google Groups "ODK Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit-developers+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.