Branching / Cascading Select Boxes

Hello,

Newbie here with only limited coding experience, so apologise if my
questions seem a bit stupid.

I'm building an ODK form for safari rangers / scientists to track animal
sightings in South Africa for conservation purposes. I used ODK Build
widgets to create the form and it works great. But I need to change it
slightly so I can split long select lists (e.g. instead of listing all
animals a ranger might see, only list "predators", "large mammals" etc. and
if select "predators" then new list of "lion", "cheetah" etc shows). But
the "branching" functionality doesn't work at the moment (this seems to be
a known issue).

So I need to go an learn how to do it myself. I've looked at the various
tools and examples and can't really see other instances of
branching. Because of my limited coding experience - and no-one in Joburg
who can help! - I find it best to look at similar examples to understand
and imitate. I do see skip questions but they are not the same.

I also understand from this forum that Cascading Select Boxes would do the
same, but they are not supported by Javarosa right now.

Any thoughts on how I can work through this? Any examples of branching? If
I post my xml file would people be able to show me how to do it in 1
instance and I can then roll it out?

Thanks so much for any and all help.

Rob

FYI: The soon-to-be-released ODK Collect 1.2, Aggregate 1.2 and Build 1.2
(we decided to skip version 1.1 for those and rev. everything to 1.2 for
clarity), will support cascading selects.

The underlying javarosa library needs to be changed in all 3 in order for a
cascading select form to be understood everywhere.

Mitch

··· On Tue, Jul 10, 2012 at 6:50 AM, wrote:

On Tuesday, July 10, 2012 2:40:34 PM UTC+5:30, Rob Maclean wrote:

Hello,

Newbie here with only limited coding experience, so apologise if my

questions seem a bit stupid.

I'm building an ODK form for safari rangers / scientists to track

animal sightings in South Africa for conservation purposes. I used ODK
Build widgets to create the form and it works great. But I need to change
it slightly so I can split long select lists (e.g. instead of listing all
animals a ranger might see, only list "predators", "large
mammals" etc. and if select "predators" then new list of
"lion", "cheetah" etc shows). But the
"branching" functionality doesn't work at the moment (this
seems to be a known issue).

So I need to go an learn how to do it myself. I've looked at the

various tools and examples and can't really see other instances of
branching. Because of my limited coding experience - and no-one in Joburg
who can help! - I find it best to look at similar examples to understand
and imitate. I do see skip questions but they are not the same.

I also understand from this forum that Cascading Select Boxes would do

the same, but they are not supported by Javarosa right now.

Any thoughts on how I can work through this? Any examples of branching?

If I post my xml file would people be able to show me how to do it in 1
instance and I can then roll it out?

Thanks so much for any and all help.

Rob

Dear Rob,

You can use combination of relevant & calculate field for that, i have
found one XLS2Form file explaining it, hope it works for you. Attached
please find the same in this post

Regards,

Saumya

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

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

I use XLSForm and tested cascading selects on Collect 1.2 RC2 and it works.
Please check the form I used here http://goo.gl/5qhWo.

··· On Tuesday, July 10, 2012, Rob Maclean wrote:

Hello,

Newbie here with only limited coding experience, so apologise if my
questions seem a bit stupid.

I'm building an ODK form for safari rangers / scientists to track animal
sightings in South Africa for conservation purposes. I used ODK Build
widgets to create the form and it works great. But I need to change it
slightly so I can split long select lists (e.g. instead of listing all
animals a ranger might see, only list "predators", "large mammals" etc. and
if select "predators" then new list of "lion", "cheetah" etc shows). But
the "branching" functionality doesn't work at the moment (this seems to be
a known issue).

So I need to go an learn how to do it myself. I've looked at the various
tools and examples and can't really see other instances of
branching. Because of my limited coding experience - and no-one in Joburg
who can help! - I find it best to look at similar examples to understand
and imitate. I do see skip questions but they are not the same.

I also understand from this forum that Cascading Select Boxes would do the
same, but they are not supported by Javarosa right now.

Any thoughts on how I can work through this? Any examples of branching? If
I post my xml file would people be able to show me how to do it in 1
instance and I can then roll it out?

Thanks so much for any and all help.

Rob

--
Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en

Oops... I mean Briefcase

··· On Tue, Jul 10, 2012 at 10:04 AM, Mitch S wrote:

FYI: The soon-to-be-released ODK Collect 1.2, Aggregate 1.2 and Build 1.2
(we decided to skip version 1.1 for those and rev. everything to 1.2 for
clarity), will support cascading selects.

The underlying javarosa library needs to be changed in all 3 in order for
a cascading select form to be understood everywhere.

Mitch

On Tue, Jul 10, 2012 at 6:50 AM, saumyagarg1976@gmail.com wrote:

On Tuesday, July 10, 2012 2:40:34 PM UTC+5:30, Rob Maclean wrote:

Hello,

Newbie here with only limited coding experience, so apologise if my

questions seem a bit stupid.

I'm building an ODK form for safari rangers / scientists to track

animal sightings in South Africa for conservation purposes. I used ODK
Build widgets to create the form and it works great. But I need to change
it slightly so I can split long select lists (e.g. instead of listing all
animals a ranger might see, only list "predators", "large
mammals" etc. and if select "predators" then new list of
"lion", "cheetah" etc shows). But the
"branching" functionality doesn't work at the moment (this
seems to be a known issue).

So I need to go an learn how to do it myself. I've looked at the

various tools and examples and can't really see other instances of
branching. Because of my limited coding experience - and no-one in Joburg
who can help! - I find it best to look at similar examples to understand
and imitate. I do see skip questions but they are not the same.

I also understand from this forum that Cascading Select Boxes would do

the same, but they are not supported by Javarosa right now.

Any thoughts on how I can work through this? Any examples of branching?

If I post my xml file would people be able to show me how to do it in 1
instance and I can then roll it out?

Thanks so much for any and all help.

Rob

Dear Rob,

You can use combination of relevant & calculate field for that, i have
found one XLS2Form file explaining it, hope it works for you. Attached
please find the same in this post

Regards,

Saumya

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

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

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

Hi.

Thanks so much for all your help.

Have got it working using Nikolai's link to build cascading selects. Works
a dream. If anyone wants a copy / if it's useful for me to post it
somewhere, let me know (can't see how to add to formhub).

Really appreciated.

Rob

··· On Wednesday, July 11, 2012 1:44:58 AM UTC+2, ニコノコ wrote: > > I use XLSForm and tested cascading selects on Collect 1.2 RC2 and it > works. Please check the form I used here . > > > On Tuesday, July 10, 2012, Rob Maclean wrote: > >> Hello, >> >> Newbie here with only limited coding experience, so apologise if my >> questions seem a bit stupid. >> >> I'm building an ODK form for safari rangers / scientists to track animal >> sightings in South Africa for conservation purposes. I used ODK Build >> widgets to create the form and it works great. But I need to change it >> slightly so I can split long select lists (e.g. instead of listing all >> animals a ranger might see, only list "predators", "large mammals" etc. and >> if select "predators" then new list of "lion", "cheetah" etc shows). But >> the "branching" functionality doesn't work at the moment (this seems to be >> a known issue). >> >> So I need to go an learn how to do it myself. I've looked at the various >> tools and examples and can't really see other instances of >> branching. Because of my limited coding experience - and no-one in Joburg >> who can help! - I find it best to look at similar examples to understand >> and imitate. I do see skip questions but they are not the same. >> >> I also understand from this forum that Cascading Select Boxes would do >> the same, but they are not supported by Javarosa right now. >> >> Any thoughts on how I can work through this? Any examples of branching? >> If I post my xml file would people be able to show me how to do it in 1 >> instance and I can then roll it out? >> >> Thanks so much for any and all help. >> >> Rob >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >