Set Value Inside of Repeat Record

1450
10
04-19-2018 01:53 PM
danbecker
Occasional Contributor III
typenamelabelreadonlycalculation
select_one shrub_speciessp1select species
begin repeatshrub_interceptsenter intercepts
textshrub_speciesselected shrub speciesyes${sp1}
integerint_start_cmstart CM
integerint_end_cmend CM
end repeat

Surveyors don't want to continually select a shrub_species inside the repeat each time they advance the repeat. They want select it 1 time (outside the repeat), then set multiple int_start_cm / int_end_cm values inside the repeat.

Everything works as-expected until they want to switch the select_one shrub_species in the top dropdown box.

If you back arrow < to the previously entered repeat records, they display the currently selected sp1 value, not the value that was selected when they were added.

Luckily, after submitting and syncing the data, the database displays the correctly selected sp1 value.

Anyone have a workaround so that field staff can page backward through the repeat and see what sp1 value was set?

0 Kudos
10 Replies
NathanDulfon
New Contributor III

Right on! 

Thanks Johnathan.....

I can't wait for the further enhancement for repeats....

The things within repeats I am requesting that would benefit others are:

1) repeating answers from one repeat to the next

2) an indexed-repeat() within repeats and sub repeats

3) some way to extract information from a position in a repeat across all repeats

Thank you again Jonathan!

I am super amped to see the next updates!

0 Kudos