Select to view content in your preferred language

Repeat - Auto-Fill Questions

277
1
03-29-2024 04:17 PM
ChrisAuger
Emerging Contributor

Hello 

I have a select one question in a repeat and I want to copy that answer into another repeat note field. 

This first repeats first question 

begin repeatavainpointrepeatAvian Point-Count Surveys
select_one pointlocpointlocPoint Count Location

 

I then want the answer to pointloc to be displayed in the note field pointcount in a separate repeat as the first question.

begin repeataviansurveydatarpAvian Survey Data
notepointcountPoint Count Location

 

I tried: ${pointloc} in the calculation which always fills, but it just matches the most recent choice to the note field. When you make a new record in the repeat it fills the note field with the first answer not records 2 to 2, 3 to 3, etc. It feills 1 to 2, 1 to 3. 

Also tried something like: selected-at(${pointloc}, position(..)-1) which returns it on the first repeat but not on subsequent repeats. Subsequent repeats just show up blank. 

So trying to match them up So first time repeat to first repeat, second to second, etc. 

 

1 Reply
DougBrowning
MVP Esteemed Contributor
0 Kudos