Accessing individual values for repeat records based on another field within the repeat (outside of the repeat)

347
2
Jump to solution
08-10-2022 06:56 AM
bb_geo_fish
New Contributor

Greetings,

I am trying to autofill a question in a survey form following a repeat (as a display for the user) essentially accessing the decimal value of a field in the repeat (any of the green fields, if it meets the criteria of a "station_type" (red)  field within the repeat. There is only 1 record within the repeat that will meet the criteria of the of the "station_type" field. It sounds confusing, but I think it could be easily done with a javascript function. I'm having trouble working with the array from the repeat properly, and have zero experience with javascript.

BudBostick_1-1660139236289.png

If there is an easier way to do this without javascript please let me know (I have tried a lot of different things).

Thanks in advance!

 

 

0 Kudos
1 Solution

Accepted Solutions
Katie_Clark
MVP Regular Contributor

If I'm understanding correctly....is this something you can do with the "indexed-repeat" functionality?

Katherine_Clark_0-1660143655366.png

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#:~:text=To%20repeat%20....

 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek

View solution in original post

0 Kudos
2 Replies
Katie_Clark
MVP Regular Contributor

If I'm understanding correctly....is this something you can do with the "indexed-repeat" functionality?

Katherine_Clark_0-1660143655366.png

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#:~:text=To%20repeat%20....

 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
bb_geo_fish
New Contributor

Yes! I had just resorted to that function. Thank you!