Populating first loop item with earlier field data

Dear all,
I have a household survey where early on I ask for the Head of House ID,
firstName,middleName and Surname. Later on within the same survey I start a
loop where I want to register all household member IDs, firstNames,
middleNames and Surnames. Considering I have already done this for the head
of house earlier, I am wondering how I can pre-populate the firstName,
middleName and Surname fields *only on the first loop. *Subsequent loops
should not pre-populate. Is this possible, selectively pre-populating a
loop based on jr:count maybe?

Thanks in advance,
Tumaini

This is not possible.

Each copy of the loop is expected to behave identically.

··· On Fri, Sep 25, 2015 at 6:22 AM, Tumaini Kilimba wrote:

Dear all,
I have a household survey where early on I ask for the Head of House ID,
firstName,middleName and Surname. Later on within the same survey I start a
loop where I want to register all household member IDs, firstNames,
middleNames and Surnames. Considering I have already done this for the head
of house earlier, I am wondering how I can pre-populate the firstName,
middleName and Surname fields *only on the first loop. *Subsequent loops
should not pre-populate. Is this possible, selectively pre-populating a
loop based on jr:count maybe?

Thanks in advance,
Tumaini

--

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

Thanks

··· On Sep 25, 2015 7:48 PM, "Mitch Sundt" wrote:

This is not possible.

Each copy of the loop is expected to behave identically.

On Fri, Sep 25, 2015 at 6:22 AM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Dear all,
I have a household survey where early on I ask for the Head of House ID,
firstName,middleName and Surname. Later on within the same survey I start a
loop where I want to register all household member IDs, firstNames,
middleNames and Surnames. Considering I have already done this for the head
of house earlier, I am wondering how I can pre-populate the firstName,
middleName and Surname fields *only on the first loop. *Subsequent loops
should not pre-populate. Is this possible, selectively pre-populating a
loop based on jr:count maybe?

Thanks in advance,
Tumaini

--

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

--

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.

Tumaini,

As Mitch said, each loop behaves identically. I use the attached example as
an effective work around for these situations. It can require a little more
work on the data cleaning end, but I've found that utilizing this can
reduce HH roster errors.

In short you have two questions within the HH roster repeat group for each
question you want pre-populated based on previously collected data. The
first Q is only relevant on the first loop (and pre-populated) and the
second Q is relevant for all other loops.

~Lloyd

HH_roster_example.xlsx (10.5 KB)

··· On Friday, September 25, 2015 at 1:42:10 PM UTC-4, Tumaini Kilimba wrote: > > Thanks > On Sep 25, 2015 7:48 PM, "Mitch Sundt" <mitche...@gmail.com > wrote: > >> This is not possible. >> >> Each copy of the loop is expected to behave identically. >> >> >> On Fri, Sep 25, 2015 at 6:22 AM, Tumaini Kilimba <tkil...@ihi.or.tz > wrote: >> >>> Dear all, >>> I have a household survey where early on I ask for the Head of House ID, >>> firstName,middleName and Surname. Later on within the same survey I start a >>> loop where I want to register all household member IDs, firstNames, >>> middleNames and Surnames. Considering I have already done this for the head >>> of house earlier, I am wondering how I can pre-populate the firstName, >>> middleName and Surname fields *only on the first loop. *Subsequent >>> loops should not pre-populate. Is this possible, selectively pre-populating >>> a loop based on jr:count maybe? >>> >>> Thanks in advance, >>> Tumaini >>> >>> -- >>> -- >>> 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. >> >

Thanks Lloyd I will try this solution

regards
Tumaini

··· On Mon, Sep 28, 2015 at 3:39 AM, Lloyd Owen Banwart <lloyd.banwart@gmail.com wrote:

Tumaini,

As Mitch said, each loop behaves identically. I use the attached example
as an effective work around for these situations. It can require a little
more work on the data cleaning end, but I've found that utilizing this can
reduce HH roster errors.

In short you have two questions within the HH roster repeat group for each
question you want pre-populated based on previously collected data. The
first Q is only relevant on the first loop (and pre-populated) and the
second Q is relevant for all other loops.

~Lloyd

On Friday, September 25, 2015 at 1:42:10 PM UTC-4, Tumaini Kilimba wrote:

Thanks
On Sep 25, 2015 7:48 PM, "Mitch Sundt" mitche...@gmail.com wrote:

This is not possible.

Each copy of the loop is expected to behave identically.

On Fri, Sep 25, 2015 at 6:22 AM, Tumaini Kilimba tkil...@ihi.or.tz wrote:

Dear all,
I have a household survey where early on I ask for the Head of House
ID, firstName,middleName and Surname. Later on within the same survey I
start a loop where I want to register all household member IDs, firstNames,
middleNames and Surnames. Considering I have already done this for the head
of house earlier, I am wondering how I can pre-populate the firstName,
middleName and Surname fields *only on the first loop. *Subsequent
loops should not pre-populate. Is this possible, selectively pre-populating
a loop based on jr:count maybe?

Thanks in advance,
Tumaini

--

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.

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