[ODK Community] repeat group - linking answers between 2 repeats groups

The form you attached is not complete for the example given.

So it is impossible to see what is not working, since the form is not
working.

Take your original form, delete as many prompts as you can, and attach it.

Mitch

··· On Thu, Oct 22, 2015 at 9:08 AM, wrote:

Dear all,

Ask this question for all member of the household before asking each
member who responds to yes C2 -E5
I am asking only one question for all household members "C.1 Was ${namefromearlier2}
sick with fever within the last 2 weeks?" using repeat group (sick),
after that question I will like to ask each member a set of questions (I
only put C2, but I have until C12) but only to the members who responds
"yes" (${q_c1}=1) in the first question C.1. The way that is now, is not
working, is like once that the first repeat group is closed, the
information is not saved, any ideas???? Thank you!!! Pamela. (the form
is attached too)

type name label relevance calculation repeat_count begin repeat sick SECTION
C: HEALTH SEEKING count(${names}) calculate namefromearlier2
indexed-repeat(${name}, ${names}, position(..)) select_one yes_no q_c1 C.1
Was ${namefromearlier2} sick with fever within the last 2 weeks? end
repeat sick begin repeat sick2 SECTION C: HEALTH SEEKING count
(${names}) calculate namefromearlier3 indexed-repeat(${name}, ${names},
position(..)) integer q_c2 C.2 How many days ago did ${namefromearlier3}'s
fever start? ${q_c1}=1 end repeat sick2

--

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.

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

Dear Mitch,

Thanks for your reply. Attached is the new form. The error shows "This
field is repeated .... you may need to use the indexed-repeat() function to
specify which value you want"
Thanks again!

Pamela

hh_survey.xlsx (37 KB)

··· On Thursday, ctoOber 22, 2015 at 11:34:25 PM UTC+1, Mitch Sundt wrote: > > The form you attached is not complete for the example given. > > So it is impossible to see what is not working, since the form is not > working. > > Take your original form, delete as many prompts as you can, and attach it. > > Mitch > > > On Thu, Oct 22, 2015 at 9:08 AM, <pamj...@gmail.com > wrote: > >> Dear all, >> >> Ask this question for all member of the household before asking each >> member who responds to yes C2 -E5 >> I am asking only one question for all household members "C.1 Was ${namefromearlier2} >> sick with fever within the last 2 weeks?" using repeat group (sick), >> after that question I will like to ask each member a set of questions (I >> only put C2, but I have until C12) but only to the members who responds >> "yes" (${q_c1}=1) in the first question C.1. The way that is now, is not >> working, is like once that the first repeat group is closed, the >> information is not saved, any ideas???? Thank you!!! Pamela. (the form >> is attached too) >> >> >> type name label relevance calculation repeat_count begin repeat sick SECTION >> C: HEALTH SEEKING count(${names}) calculate namefromearlier2 >> indexed-repeat(${name}, ${names}, position(..)) select_one yes_no q_c1 C.1 >> Was ${namefromearlier2} sick with fever within the last 2 weeks? >> end repeat sick begin repeat sick2 SECTION C: HEALTH SEEKING >> count(${names}) calculate namefromearlier3 indexed-repeat(${name}, ${names}, >> position(..)) integer q_c2 C.2 How many days ago did ${namefromearlier3}'s >> fever start? ${q_c1}=1 end repeat sick2 >> >> -- >> -- >> 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. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

See
https://groups.google.com/forum/#!searchin/opendatakit/indexed-repeat|sort:date/opendatakit/F5ZhjuO7_20/i92Ff8NQAAAJ

··· On Thu, Oct 22, 2015 at 4:24 PM, wrote:

Dear Mitch,

Thanks for your reply. Attached is the new form. The error shows "This
field is repeated .... you may need to use the indexed-repeat() function
to specify which value you want"
Thanks again!

Pamela

On Thursday, ctoOber 22, 2015 at 11:34:25 PM UTC+1, Mitch Sundt wrote:

The form you attached is not complete for the example given.

So it is impossible to see what is not working, since the form is not
working.

Take your original form, delete as many prompts as you can, and attach it.

Mitch

On Thu, Oct 22, 2015 at 9:08 AM, pamj...@gmail.com wrote:

Dear all,

Ask this question for all member of the household before asking each
member who responds to yes C2 -E5
I am asking only one question for all household members "C.1 Was ${namefromearlier2}
sick with fever within the last 2 weeks?" using repeat group (sick),
after that question I will like to ask each member a set of questions (I
only put C2, but I have until C12) but only to the members who responds
"yes" (${q_c1}=1) in the first question C.1. The way that is now, is
not working, is like once that the first repeat group is closed, the
information is not saved, any ideas???? Thank you!!! Pamela. (the form
is attached too)

type name label relevance calculation repeat_count begin repeat sick SECTION
C: HEALTH SEEKING count(${names}) calculate namefromearlier2
indexed-repeat(${name}, ${names}, position(..)) select_one yes_no q_c1 C.1
Was ${namefromearlier2} sick with fever within the last 2 weeks?
end repeat sick begin repeat sick2 SECTION C: HEALTH SEEKING
count(${names}) calculate namefromearlier3 indexed-repeat(${name}, $
{names}, position(..)) integer q_c2 C.2 How many days ago did ${namefromearlier3}'s
fever start? ${q_c1}=1 end repeat sick2

--

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.

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

--

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.

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

Thank you!

··· On Monday, October 26, 2015 at 6:57:46 PM UTC, Mitch Sundt wrote: > > See > https://groups.google.com/forum/#!searchin/opendatakit/indexed-repeat%7Csort:date/opendatakit/F5ZhjuO7_20/i92Ff8NQAAAJ > > On Thu, Oct 22, 2015 at 4:24 PM, <pamj...@gmail.com > wrote: > >> Dear Mitch, >> >> Thanks for your reply. Attached is the new form. The error shows "This >> field is repeated .... you may need to use the indexed-repeat() function >> to specify which value you want" >> Thanks again! >> >> Pamela >> >> On Thursday, ctoOber 22, 2015 at 11:34:25 PM UTC+1, Mitch Sundt wrote: >>> >>> The form you attached is not complete for the example given. >>> >>> So it is impossible to see what is not working, since the form is not >>> working. >>> >>> Take your original form, delete as many prompts as you can, and attach >>> it. >>> >>> Mitch >>> >>> >>> On Thu, Oct 22, 2015 at 9:08 AM, wrote: >>> >>>> Dear all, >>>> >>>> Ask this question for all member of the household before asking each >>>> member who responds to yes C2 -E5 >>>> I am asking only one question for all household members "C.1 Was ${namefromearlier2} >>>> sick with fever within the last 2 weeks?" using repeat group (sick), >>>> after that question I will like to ask each member a set of questions (I >>>> only put C2, but I have until C12) but only to the members who responds >>>> "yes" (${q_c1}=1) in the first question C.1. The way that is now, is >>>> not working, is like once that the first repeat group is closed, the >>>> information is not saved, any ideas???? Thank you!!! Pamela. (the >>>> form is attached too) >>>> >>>> >>>> type name label relevance calculation repeat_count begin repeat sick SECTION >>>> C: HEALTH SEEKING count(${names}) calculate namefromearlier2 >>>> indexed-repeat(${name}, ${names}, position(..)) select_one yes_no >>>> q_c1 C.1 Was ${namefromearlier2} sick with fever within the last 2 >>>> weeks? end repeat sick begin repeat sick2 SECTION C: >>>> HEALTH SEEKING count(${names}) calculate namefromearlier3 >>>> indexed-repeat(${name}, ${names}, position(..)) integer q_c2 C.2 How >>>> many days ago did ${namefromearlier3}'s fever start? ${q_c1}=1 end >>>> repeat sick2 >>>> >>>> -- >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> Mitch Sundt >>> Software Engineer >>> University of Washington >>> mitche...@gmail.com >>> >> -- >> -- >> 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. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >