Survey123: Can I calculate a field value based on a previous record item in a repeated field?

228
1
05-09-2018 08:49 AM
Highlighted
New Contributor II

I am creating a survey for sea turtle surveys, and I have repeated fields for each animal. There is weather/sargassum patch information associated with each turtle that is captured. Often multiple turtles are captured in the same sargassum patch and under the same weather conditions. Is there a way to frame a calculation statement so that the weather/sargassum information can be automatically carried over to the next entry (from the first in a list of repeated fields) to save time in the field? The way I currently have it produces an error because it's a circular reference (photo attached). Ideally, I would like the second observation (turtle) to default to the first, but I am not sure how to code this or if it's even possible. Thank you!survey123_example_xlsform

Reply
0 Kudos
1 Reply
Highlighted
New Contributor II

You may want to consider removing the repeat for weather data and make a repeat for each turtle.

Reply
0 Kudos