Dear all,
I hope you are well.
I am wondering if I can put a constraint on a multiple choice question. I already tried the solution here https://groups.google.com/forum/#!msg/opendatakit/hHY0ngwuenA/h-mRzBbuWngJ
However it did not work for me.
I have a basic example but my real question includes more choices:
survey sheet
type name label
select_multiple water_sources hh_water_source Source of water
choices sheet
list name name label
water_sources house_tap Household tap
water_sources private_tap Private tap in yard
water_sources nothing nothing
If people choose House hold tap and Private tap in yard (or any other combination given that my original list has more options) I want them NOT to be able to select nothing. If people select nothing I want them NOT to be able to select Household tap and Private tap in yard.
I have attached the form if it will help you.
Best wishes and thank you for your help
Ulises
Book1.xls (26 KB)
Hi Ulises
The way I do it is a little bit rudimentary but it works,
Here an example:
Hope it helps
William
···
-----Original Message-----
From: ulises.huerta.munoz@gmail.com
Sent: Friday, April 25, 2014 10:40 AM
To: opendatakit@googlegroups.com
Subject: [ODK Community] Constraint on a multiple choice question
Dear all,
I hope you are well.
I am wondering if I can put a constraint on a multiple choice question. I
already tried the solution here
https://groups.google.com/forum/#!msg/opendatakit/hHY0ngwuenA/h-mRzBbuWngJ
However it did not work for me.
I have a basic example but my real question includes more choices:
survey sheet
type name label
select_multiple water_sources hh_water_source Source of water
choices sheet
list name name label
water_sources house_tap Household tap
water_sources private_tap Private tap in yard
water_sources nothing nothing
If people choose House hold tap and Private tap in yard (or any other
combination given that my original list has more options) I want them NOT to
be able to select nothing. If people select nothing I want them NOT to be
able to select Household tap and Private tap in yard.
I have attached the form if it will help you.
Best wishes and thank you for your help
Ulises
--
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.
Using XLSForm:
(1) on the choices sheet, add extra columns to your choices with your
different group restrictions.
(2) on your survey sheet, under the choice_filter column, specify a filter
predicate that will select the set of choices you want to show.
I.e., choices:
list_name name label groupset
my_choices v1 label1 grp1
my_choices v2 label2 grp1
my_choices v3 label3 grp2
my_choices v4 label4 grp2
And on your sheet
type ... choice_filter
select my_choices ... groupset='grp2'
An example of this is here:
http://opendatakit.org/wp-content/uploads/2012/07/new_cascading_select.xls
This is part of the Cascading Selects feature.
···
-----------
Mitch
On Fri, Apr 25, 2014 at 10:07 AM, William Aviles Monterrey < wravmon@gmail.com> wrote:
Hi Ulises
The way I do it is a little bit rudimentary but it works,
Here an example:
Hope it helps
William
-----Original Message----- From: ulises.huerta.munoz@gmail.com
Sent: Friday, April 25, 2014 10:40 AM
To: opendatakit@googlegroups.com
Subject: [ODK Community] Constraint on a multiple choice question
Dear all,
I hope you are well.
I am wondering if I can put a constraint on a multiple choice question. I
already tried the solution here https://groups.google.com/
forum/#!msg/opendatakit/hHY0ngwuenA/h-mRzBbuWngJ
However it did not work for me.
I have a basic example but my real question includes more choices:
survey sheet
type name label
select_multiple water_sources hh_water_source Source of water
choices sheet
list name name label
water_sources house_tap Household tap
water_sources private_tap Private tap in yard
water_sources nothing nothing
If people choose House hold tap and Private tap in yard (or any other
combination given that my original list has more options) I want them NOT
to be able to select nothing. If people select nothing I want them NOT to
be able to select Household tap and Private tap in yard.
I have attached the form if it will help you.
Best wishes and thank you for your help
Ulises
--
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.
--
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