Select in multplechoice

Dear all,

I have a multiple select list with ages from 5 years to 18 years (5 years,
6 years, etc. up to year 18). So, multiple ages can be selected from this
list. I want to use the minimum and maximum selected age in a loop (2 x
repeat). So if the enumerator chooses ages: 7, 9, 12 and 14, I want to
create a repeat for year 7 and 14. Is this possible? And how could I do
this? Thanks for the feedback!

Kind regards,

Eddy

Hi Eddy,

It's doable. max(\${my_select}) and min(\${my_select}) will give you the
max and min of your select. Store those values in a calculate
(\${my_max_value}, \${my_min_value}).

Then have two repeats (my_max_repeat, my_min_repeat) and you can use
the stored values inside that repeat as outputs to show the enumerator
what age they are referring to.

Yaw

··· On Mon, Nov 21, 2016 at 1:53 PM, Eddy Rellum <4estsense@gmail.com> wrote: > Dear all, > > I have a multiple select list with ages from 5 years to 18 years (5 years, 6 > years, etc. up to year 18). So, multiple ages can be selected from this > list. I want to use the minimum and maximum selected age in a loop (2 x > repeat). So if the enumerator chooses ages: 7, 9, 12 and 14, I want to > create a repeat for year 7 and 14. Is this possible? And how could I do > this? Thanks for the feedback! > > Kind regards, > > Eddy > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

11:09 PM (less than a minute ago)
Great. I will try it. Thanks Yaw for the help!

Auto Generated Inline Image 1 (175 Bytes)

··· On Saturday, November 26, 2016 at 8:10:57 AM UTC+1, Yaw Anokwa wrote: > > Hi Eddy, > > It's doable. max(\${my_select}) and min(\${my_select}) will give you the > max and min of your select. Store those values in a calculate > (\${my_max_value}, \${my_min_value}). > > Then have two repeats (my_max_repeat, my_min_repeat) and you can use > the stored values inside that repeat as outputs to show the enumerator > what age they are referring to. > > Yaw > > > On Mon, Nov 21, 2016 at 1:53 PM, Eddy Rellum <4est...@gmail.com > wrote: > > Dear all, > > > > I have a multiple select list with ages from 5 years to 18 years (5 > years, 6 > > years, etc. up to year 18). So, multiple ages can be selected from this > > list. I want to use the minimum and maximum selected age in a loop (2 x > > repeat). So if the enumerator chooses ages: 7, 9, 12 and 14, I want to > > create a repeat for year 7 and 14. Is this possible? And how could I do > > this? Thanks for the feedback! > > > > Kind regards, > > > > Eddy > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "ODK Community" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to opendatakit...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >