Select to view content in your preferred language

Refer to the option of a question selected in a previous or subsequent repetition response within a repeatition section

511
1
Jump to solution
04-19-2023 05:37 AM
RaynerCastro
Emerging Contributor

Hello, I hope you can help me.

I'm designing a survey123 form to register the route of a student transportation service, and I have a repeating section to record each stop made because it's not possible for me to record the entire route.

In a CSV file, I have the distance between each stop indicating the origin, destination, and direction. Therefore, in each repetition response, I only ask for the name of the stop.

My problem arises because to call the distance, I need to build the attribute of direction-origin-destination within the repetition. How can I call the route indicated in a previous repetition response?

I'm attaching an illustrative example.

Artboard 11@3x.png

I need to refer to the response of a previous or subsequent repetition. Additionally, in the case of "To school," indicate that if there is no other repetition, it should be assumed that the destination is the school. The idea is not to ask the same question again and reuse the responses.

Thank you very much!

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JJ_Reyes
Frequent Contributor
0 Kudos
1 Reply
JJ_Reyes
Frequent Contributor

Hi @RaynerCastro - try working with the indexed-repeat. Here's a post with some attached examples: 

https://community.esri.com/t5/arcgis-survey123-questions/passing-value-s-to-a-repeat-from-a-previous...

0 Kudos