Building a set of select items from previous answer

Hello CommCare Users,

We have a survey where we need to first do a household roster (name of
everyone in household) and then, in later sections, ask who from that
roster is answering a particular set of questions. So basically there’d be
a series of text questions earlier, each with name of people in household,
then a single-select question later where the set of items to choose shows
a list of those names.

I’m trying to figure out if it’s possible to do this, I’m guessing no in
app builder, but by modifying XML code. I’m familiar with lookup tables
but if I’m not mistaken, that’s for pre-established lists and can’t be
generated on the fly? Any thoughts would be greatly appreciated!

Emily

Hey Emily,

Its certainly possible, but you would need to use a repeat group to collect
the name of each person in the household.

Once you’ve done that you can setup a single select question similar to how
you setup a single select question for a lookup table. However, you’d need
to setup the itemset to something like this:

Happy to follow up individually with you if that doesn’t make sense.

Regards,
Sheel

··· On Tue, Feb 17, 2015 at 4:13 AM, wrote:

Hello CommCare Users,

We have a survey where we need to first do a household roster (name of
everyone in household) and then, in later sections, ask who from that
roster is answering a particular set of questions. So basically there’d be
a series of text questions earlier, each with name of people in household,
then a single-select question later where the set of items to choose shows
a list of those names.

I’m trying to figure out if it’s possible to do this, I’m guessing no in
app builder, but by modifying XML code. I’m familiar with lookup tables
but if I’m not mistaken, that’s for pre-established lists and can’t be
generated on the fly? Any thoughts would be greatly appreciated!

Emily


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


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah

Thanks, Sheel! That does make sense and I think I have a good idea of how to do it.

Thanks!
Emily

··· On Tuesday, February 17, 2015 at 8:04 PM, Sheel Shah wrote:

Hey Emily,

Its certainly possible, but you would need to use a repeat group to collect the name of each person in the household.

Once you’ve done that you can setup a single select question similar to how you setup a single select question for a lookup table. However, you’d need to setup the itemset to something like this:

Happy to follow up individually with you if that doesn’t make sense.

Regards,
Sheel

On Tue, Feb 17, 2015 at 4:13 AM, <emily@aquaya.org (mailto:emily@aquaya.org)> wrote:

Hello CommCare Users,

We have a survey where we need to first do a household roster (name of everyone in household) and then, in later sections, ask who from that roster is answering a particular set of questions. So basically there’d be a series of text questions earlier, each with name of people in household, then a single-select question later where the set of items to choose shows a list of those names.

I’m trying to figure out if it’s possible to do this, I’m guessing no in app builder, but by modifying XML code. I’m familiar with lookup tables but if I’m not mistaken, that’s for pre-established lists and can’t be generated on the fly? Any thoughts would be greatly appreciated!

Emily


You received this message because you are subscribed to the Google Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-users+unsubscribe@googlegroups.com (mailto:commcare-users+unsubscribe@googlegroups.com).
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 (tel:%2B1.781.428.5419) | skype: sheel_shah


You received this message because you are subscribed to a topic in the Google Groups “commcare-users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commcare-users/zVK5FJJz_rs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commcare-users+unsubscribe@googlegroups.com (mailto:commcare-users+unsubscribe@googlegroups.com).
For more options, visit https://groups.google.com/d/optout.