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!
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!
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.
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!