Restricting select on "None" with other choices in Multiple select question

Good day all,

We have some questions using multiple select choice in our survey, wherein
"none" include in the choices list along with other choices. We use this
way of asking questions to lessen the duration of the data gathering in
avoiding some Yes/No questions.

We have this questions: Is the house surrounded by natural/man-made
elements protecting against the wind?

select_multiple elements_wind

choices:
elements_wind trees Trees
elements_wind shrubs Shrubs
elements_wind rockhill Rock/Hills
elements_wind cfence Concrete Fence
elements_wind wfence Wooden Fence
elements_wind obuild Other Buildings
elements_wind none None at all

We would like to restrict the user's in selecting "none" if the
respondent's answers "trees", "shrubs" or other choices.
"none" will only be an allowed entry if respondent's answer is none.

I found some topics related topics on this but it doesn't work. Maybe i
missed something on it.

How would be this possible in XLSForm? Where some response is only one,
like "trees" only.

Thanks..

Have you tried this:

if (count-selected(${Q1}) > 1, not(selected(${Q1},'none')), true())

ยทยทยท On Tue, Feb 17, 2015 at 6:50 PM, neil jerson wrote:

Good day all,

We have some questions using multiple select choice in our survey, wherein
"none" include in the choices list along with other choices. We use this
way of asking questions to lessen the duration of the data gathering in
avoiding some Yes/No questions.

We have this questions: Is the house surrounded by natural/man-made
elements protecting against the wind?

select_multiple elements_wind

choices:
elements_wind trees Trees
elements_wind shrubs Shrubs
elements_wind rockhill Rock/Hills
elements_wind cfence Concrete Fence
elements_wind wfence Wooden Fence
elements_wind obuild Other Buildings
elements_wind none None at all

We would like to restrict the user's in selecting "none" if the
respondent's answers "trees", "shrubs" or other choices.
"none" will only be an allowed entry if respondent's answer is none.

I found some topics related topics on this but it doesn't work. Maybe i
missed something on it.

How would be this possible in XLSForm? Where some response is only one,
like "trees" only.

Thanks..

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

1 Like

Thank you.

I'll try this one..

ยทยทยท On Wednesday, February 18, 2015 at 9:36:10 AM UTC-8, Mitch Sundt wrote: > > Have you tried this: > > if (count-selected(${Q1}) > 1, not(selected(${Q1},'none')), true()) > > > On Tue, Feb 17, 2015 at 6:50 PM, neil jerson <bara...@gmail.com > wrote: > >> Good day all, >> >> >> We have some questions using multiple select choice in our survey, >> wherein "none" include in the choices list along with other choices. We >> use this way of asking questions to lessen the duration of the data >> gathering in avoiding some Yes/No questions. >> >> We have this questions: Is the house surrounded by natural/man-made >> elements protecting against the wind? >> >> select_multiple elements_wind >> >> choices: >> elements_wind trees Trees >> elements_wind shrubs Shrubs >> elements_wind rockhill Rock/Hills >> elements_wind cfence Concrete Fence >> elements_wind wfence Wooden Fence >> elements_wind obuild Other Buildings >> elements_wind none None at all >> >> >> We would like to restrict the user's in selecting "none" if the >> respondent's answers "trees", "shrubs" or other choices. >> "none" will only be an allowed entry if respondent's answer is none. >> >> I found some topics related topics on this but it doesn't work. Maybe i >> missed something on it. >> >> How would be this possible in XLSForm? Where some response is only one, >> like "trees" only. >> >> >> Thanks.. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >