How to I code a branching questions on XLS2XForm

Hello,

We are implementing a household survey using ODK in South Sudan and would
like to use the branching feature for some of the questions. For example,
when the enumerator selects the State Name, the following question for
County Name will only list the relevant counties for that state. Once the
county has been selected only the relevant enumeration areas are show on
the next questions and so forth.

The tutorial and widgets don't cover branching. What is the code for
setting this up in an XLS2XForm?

Thanks,

··· -- *Mikael L. Clason Hook* International Consultant, World Bank

US: +1 202.492.0189

South Sudan: +249 956.711.791

Skype: mikaelhook

mhook@worldbank.org

mikaelclasonhook@gmail.com

www.linkedin.com/in/mikaelclasonhook

Mikael,

The tutorial at http://opendatakit.org/help/form-design/xlsform/ has
some information under Skipping Questions.
http://opendatakit.org/help/form-design/binding/ also has some
information on branching (it's called relevance, in XForms lingo).

The easiest way to go is to have a single select one for the states,
and a select one for every state's counties. Then you need to make the
select one for every state's counties relevant if that state has been
selected. That's kind of a mouthful, so here is an example with cars.

select a make ford f honda h select a honda model accord accord civic civic select a ford model mustang mustang f-150 f150

There are other ways to do what you want (using itemsets), but I think
this is the easiest if you don't have lots of states and counties.

Yaw

··· On Fri, Apr 20, 2012 at 07:01, Mikael Clason Hook wrote: > Hello, > > We are implementing a household survey using ODK in South Sudan and would > like to use the branching feature for some of the questions. For example, > when the enumerator selects the State Name, the following question for > County Name will only list the relevant counties for that state. Once the > county has been selected only the relevant enumeration areas are show on the > next questions and so forth. > > The tutorial and widgets don't cover branching. What is the code for setting > this up in an XLS2XForm? > > Thanks, > > -- > Mikael L. Clason Hook > International Consultant, World Bank > > US: +1 202.492.0189 > > South Sudan: +249 956.711.791 > > Skype: mikaelhook > > mhook@worldbank.org > > mikaelclasonhook@gmail.com > > www.linkedin.com/in/mikaelclasonhook > > > > > > > > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Mikael,

You can create itemsets, and cascading selections pretty easily in
KoBoForm.
KoBoCollect is based on ODK Collect, with some tweaks for supporting
cascading selections, just as described, for things like State, County,
City.

You can find the KoBoForm Builder at http://www.kobotoolbox.org/koboform/

and you can get some instructions specific to adding datasets for cascading
selections at:

http://www.kobotoolbox.org/support/userguide/koboform/cascadingselect

There is an offline version in case you have bandwidth issues. Please let
us know if it is some help.

☞§※☼:airplane::open_umbrella::slight_smile:
~Neil

··· On Fri, Apr 20, 2012 at 12:20 PM, Yaw Anokwa wrote:

Mikael,

The tutorial at http://opendatakit.org/help/form-design/xlsform/ has
some information under Skipping Questions.
http://opendatakit.org/help/form-design/binding/ also has some
information on branching (it's called relevance, in XForms lingo).

The easiest way to go is to have a single select one for the states,
and a select one for every state's counties. Then you need to make the
select one for every state's counties relevant if that state has been
selected. That's kind of a mouthful, so here is an example with cars.

select a make ford f honda h select a honda model accord accord civic civic select a ford model mustang mustang f-150 f150

There are other ways to do what you want (using itemsets), but I think
this is the easiest if you don't have lots of states and counties.

Yaw

On Fri, Apr 20, 2012 at 07:01, Mikael Clason Hook mikaelclasonhook@gmail.com wrote:

Hello,

We are implementing a household survey using ODK in South Sudan and would
like to use the branching feature for some of the questions. For example,
when the enumerator selects the State Name, the following question for
County Name will only list the relevant counties for that state. Once the
county has been selected only the relevant enumeration areas are show on
the
next questions and so forth.

The tutorial and widgets don't cover branching. What is the code for
setting
this up in an XLS2XForm?

Thanks,

--
Mikael L. Clason Hook
International Consultant, World Bank

US: +1 202.492.0189

South Sudan: +249 956.711.791

Skype: mikaelhook

mhook@worldbank.org

mikaelclasonhook@gmail.com

www.linkedin.com/in/mikaelclasonhook

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

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

Thanks!

··· On Apr 25, 7:09 am, Neil Hendrick wrote: > Mikael, > > You can create itemsets, and cascading selections pretty easily in > KoBoForm. > KoBoCollect is based on ODK Collect, with some tweaks for supporting > cascading selections, just as described, for things like State, County, > City. > > You can find the KoBoForm Builder athttp://www.kobotoolbox.org/koboform/ > > and you can get some instructions specific to adding datasets for cascading > selections at: > > http://www.kobotoolbox.org/support/userguide/koboform/cascadingselect > > There is an offline version in case you have bandwidth issues. Please let > us know if it is some help. > > ☞§※☼✈☂☻ > ~Neil > > > > > > > > On Fri, Apr 20, 2012 at 12:20 PM, Yaw Anokwa wrote: > > Mikael, > > > The tutorial athttp://opendatakit.org/help/form-design/xlsform/has > > some information under Skipping Questions. > >http://opendatakit.org/help/form-design/binding/also has some > > information on branching (it's called relevance, in XForms lingo). > > > The easiest way to go is to have a single select one for the states, > > and a select one for every state's counties. Then you need to make the > > select one for every state's counties relevant if that state has been > > selected. That's kind of a mouthful, so here is an example with cars. > > > > > > > > > > > > select a make > > > > ford > > f > > > > > > honda > > h > > > > > > > > > select a honda model > > > > accord > > accord > > > > > > civic > > civic > > > > > > > > > select a ford model > > > > mustang > > mustang > > > > > > f-150 > > f150 > > > > > > > There are other ways to do what you want (using itemsets), but I think > > this is the easiest if you don't have lots of states and counties. > > > Yaw > > > On Fri, Apr 20, 2012 at 07:01, Mikael Clason Hook wrote: > > > Hello, > > > > We are implementing a household survey using ODK in South Sudan and would > > > like to use the branching feature for some of the questions. For example, > > > when the enumerator selects the State Name, the following question for > > > County Name will only list the relevant counties for that state. Once the > > > county has been selected only the relevant enumeration areas are show on > > the > > > next questions and so forth. > > > > The tutorial and widgets don't cover branching. What is the code for > > setting > > > this up in an XLS2XForm? > > > > Thanks, > > > > -- > > > Mikael L. Clason Hook > > > International Consultant, World Bank > > > > US: +1 202.492.0189 > > > > South Sudan: +249 956.711.791 > > > > Skype: mikaelhook > > > > mh...@worldbank.org > > > > mikaelclasonh...@gmail.com > > > >www.linkedin.com/in/mikaelclasonhook > > > > -- > > > Post: opendatakit@googlegroups.com > > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > > Options:http://groups.google.com/group/opendatakit?hl=en > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en