Putting previous iteration values in select widget

Hello all,

I am designing a form for ODK collect. What i wonted to do is to just
repeatedly collect name of people which I did it successfully and put all
the names of the people in select widget after 'repeat' tag. It is
possible?

Thanks,

Pomi

Hi Pomi,

You can't dynamically populate a select list. If you want to refer to
items in a repeat in a non-select prompt, see the documentation for
indexed-repeat() at http://opendatakit.org/help/form-design/binding/

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, Nov 17, 2013 at 4:00 PM, Pomi Daniel pomi144@gmail.com wrote:

Hello all,

I am designing a form for ODK collect. What i wonted to do is to just
repeatedly collect name of people which I did it successfully and put all
the names of the people in select widget after 'repeat' tag. It is possible?

Thanks,

Pomi

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

Many thanks Yaw and Chris,

Here is what I wanted to do in more elaborated way. I ask a set of
questions repeatedly to household like name, relationship ... then in the
second iteration (repeat) I ask the bed nets the household owns and for
each bed net I want to display who sleeps under this net. If say name1 and
name2 are selected as if they sleep under net1, I don't want to display
them in the consecutive iterations. I need to display those who are not
selected in the previous iterations. What do you suggest I do?

Thanks once again,
Pomi.

··· On Monday, November 18, 2013 3:00:35 AM UTC+3, Pomi Daniel wrote: > > Hello all, > > I am designing a form for ODK collect. What i wonted to do is to just > repeatedly collect name of people which I did it successfully and put all > the names of the people in select widget after 'repeat' tag. It is > possible? > > Thanks, > > Pomi >

Many thanks Chirs,

You gave me an excellent website (SurveyCTO) which have a very useful
resources. I could say I get a good knowledge to solve this problem.
However I have one question. I am trying to make a cascading select inside
a repeat. I read about cascading select inside a repeat and didn't get it
quite well. Here is my problem description.

I want to ask name of a person and what type of disease he/she have. If a
person have disease A and C then I want to display Medicine 1,2,5 and 6.
But if a person have disease B then I wanted to display Medicine 3,4,5 and
6.

I attached the xls file I used to solve the problem. I also attached the
three xml options I tried with no luck. What is the best way to reference
the value of previous question to use it as a filter option in itemset tag
of select element in a repeat?

Thanks,

Pomi

choice1.xml (5.26 KB)

choice2.xml (5.25 KB)

choice3.xml (5.29 KB)

choice.xls (22 KB)

··· On Monday, November 18, 2013 3:00:35 AM UTC+3, Pomi Daniel wrote: > > Hello all, > > I am designing a form for ODK collect. What i wonted to do is to just > repeatedly collect name of people which I did it successfully and put all > the names of the people in select widget after 'repeat' tag. It is > possible? > > Thanks, > > Pomi >

Hi Yaw, Pomi,

Actually, once you've used indexed-repeat() to pull the names into
calculate fields like name1, name2, etc., you can put ${name1}, ${name2},
etc. in the labels of your select choices (on the choices worksheet). So,
you can actually do this. In the SurveyCTO documentation, we have a series
of household-roster samples, some of which demonstrate exactly this. Our
clients do this sort of thing a lot, because it's often desirable to allow
people to choose among a list of earlier entries.

So, Pomi, you can sign up at www.surveycto.com, login, go to the help tab,
and browse the rosters samples, or you can just use indexed-repeat() as Yaw
suggests, then reference your calculate fields in your choice labels. That
should work in straight ODK now that it has indexed-repeat().

Best,

Chris

··· On Sun, Nov 17, 2013 at 11:01 PM, Yaw Anokwa wrote:

Hi Pomi,

You can't dynamically populate a select list. If you want to refer to
items in a repeat in a non-select prompt, see the documentation for
indexed-repeat() at http://opendatakit.org/help/form-design/binding/

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Nov 17, 2013 at 4:00 PM, Pomi Daniel pomi144@gmail.com wrote:

Hello all,

I am designing a form for ODK collect. What i wonted to do is to just
repeatedly collect name of people which I did it successfully and put all
the names of the people in select widget after 'repeat' tag. It is
possible?

Thanks,

Pomi

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

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

Hi Pomi,

That is a pretty advanced maneuver. It's possible by being very clever
about the cascading-select filter, using the selected() function to filter
out options that were selected in previous responses. If you end up using
SurveyCTO and you run into trouble, you can open a support ticket on our
website and we can help you. But, I don't think that we have a sample that
demonstrates exactly this functionality.

Best,

Chris

··· On Mon, Nov 18, 2013 at 11:17 AM, Pomi Daniel wrote:

Many thanks Yaw and Chris,

Here is what I wanted to do in more elaborated way. I ask a set of
questions repeatedly to household like name, relationship ... then in the
second iteration (repeat) I ask the bed nets the household owns and for
each bed net I want to display who sleeps under this net. If say name1 and
name2 are selected as if they sleep under net1, I don't want to display
them in the consecutive iterations. I need to display those who are not
selected in the previous iterations. What do you suggest I do?

Thanks once again,
Pomi.

On Monday, November 18, 2013 3:00:35 AM UTC+3, Pomi Daniel wrote:

Hello all,

I am designing a form for ODK collect. What i wonted to do is to just
repeatedly collect name of people which I did it successfully and put all
the names of the people in select widget after 'repeat' tag. It is
possible?

Thanks,

Pomi

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

Hi Pomi,

I'm very sorry for the very slow reply.

Unfortunately, the cascading-select feature does not allow you to filter
based on a response within a repeated group -- which may be causing some
difficulties here. This is an open issue in ODK, and one we really need to
fix. Sadly, we have not gotten to it yet.

One reason we've been slow is that there is a work-around within SurveyCTO:
our "dynamic search and select" feature, which loads multiple-choice
options from a pre-loaded .csv file, can filter based on responses in
repeat groups. So, thus far, when we have customers who run into this
problem, we simply suggest that they shift to loading their options from a
pre-loaded .csv file. See this help topic for more:

https://pomi.surveycto.com/main.html#Help_Forms_dynamic-selects

Also, apologies again for the slow reply. You can request SurveyCTO support
via our website, and we are sure to respond quickly. We are slower to reply
to queries in these public ODK forums (because our top priority is direct
customer support).

Best,

Chris

··· On Tue, Nov 19, 2013 at 11:23 AM, Pomi Daniel wrote:

Many thanks Chirs,

You gave me an excellent website (SurveyCTO) which have a very useful
resources. I could say I get a good knowledge to solve this problem.
However I have one question. I am trying to make a cascading select inside
a repeat. I read about cascading select inside a repeat and didn't get it
quite well. Here is my problem description.

I want to ask name of a person and what type of disease he/she have. If a
person have disease A and C then I want to display Medicine 1,2,5 and 6.
But if a person have disease B then I wanted to display Medicine 3,4,5 and
6.

I attached the xls file I used to solve the problem. I also attached the
three xml options I tried with no luck. What is the best way to reference
the value of previous question to use it as a filter option in itemset tag
of select element in a repeat?

Thanks,

Pomi

On Monday, November 18, 2013 3:00:35 AM UTC+3, Pomi Daniel wrote:

Hello all,

I am designing a form for ODK collect. What i wonted to do is to just
repeatedly collect name of people which I did it successfully and put all
the names of the people in select widget after 'repeat' tag. It is
possible?

Thanks,

Pomi

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

Thanks Chris

··· On Friday, November 22, 2013 3:32:05 PM UTC+3, Christopher Robert wrote: > > Hi Pomi, > > I'm very sorry for the very slow reply. > > Unfortunately, the cascading-select feature does not allow you to filter > based on a response within a repeated group -- which may be causing some > difficulties here. This is an open issue in ODK, and one we really need to > fix. Sadly, we have not gotten to it yet. > > One reason we've been slow is that there is a work-around within > SurveyCTO: our "dynamic search and select" feature, which loads > multiple-choice options from a pre-loaded .csv file, can filter based on > responses in repeat groups. So, thus far, when we have customers who run > into this problem, we simply suggest that they shift to loading their > options from a pre-loaded .csv file. See this help topic for more: > > https://pomi.surveycto.com/main.html#Help_Forms_dynamic-selects > > > Also, apologies again for the slow reply. You can request SurveyCTO > support via our website, and we are sure to respond quickly. We are slower > to reply to queries in these public ODK forums (because our top priority is > direct customer support). > > Best, > > Chris > > > > > On Tue, Nov 19, 2013 at 11:23 AM, Pomi Daniel <pom...@gmail.com wrote: > >> Many thanks Chirs, >> >> You gave me an excellent website (SurveyCTO) which have a very useful >> resources. I could say I get a good knowledge to solve this problem. >> However I have one question. I am trying to make a cascading select inside >> a repeat. I read about cascading select inside a repeat and didn't get it >> quite well. Here is my problem description. >> >> I want to ask name of a person and what type of disease he/she have. If a >> person have disease A and C then I want to display Medicine 1,2,5 and 6. >> But if a person have disease B then I wanted to display Medicine 3,4,5 and >> 6. >> >> I attached the xls file I used to solve the problem. I also attached the >> three xml options I tried with no luck. What is the best way to reference >> the value of previous question to use it as a filter option in itemset tag >> of select element in a repeat? >> >> Thanks, >> >> Pomi >> >> On Monday, November 18, 2013 3:00:35 AM UTC+3, Pomi Daniel wrote: >> >>> Hello all, >>> >>> I am designing a form for ODK collect. What i wonted to do is to just >>> repeatedly collect name of people which I did it successfully and put all >>> the names of the people in select widget after 'repeat' tag. It is >>> possible? >>> >>> Thanks, >>> >>> Pomi >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >