Duplicate previous repeat values?

390
1
Jump to solution
01-09-2023 07:30 AM
MobiusSnake
MVP

Hi all,

I'm curious whether there's a way to duplicate the contents of a repeat from a previous entry.  I'd like the first entry to have its values default to empty, but then have subsequent repeat entries have their values default to those in the previous entry.

I've attempted to use indexed-repeat with position(..) - 1 to do this but the doc indicates you can't use indexed-repeat within the repeat you want to reference (I tested it just to make sure and as expected, it didn't work).  Are there any other ways to reach back to previous entries within a repeat?

Thanks!

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

Search the forum this has been posted multiple times.  Only real way now is javascript and a defaults page.

I could really use it.

https://community.esri.com/t5/arcgis-survey123-questions/populate-values-in-select-multiple-from-pre...

https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-answers-in-a-repeat-with-last-v...

There are more but I cannot find them.  Hope that helps

View solution in original post

1 Reply
DougBrowning
MVP Esteemed Contributor

Search the forum this has been posted multiple times.  Only real way now is javascript and a defaults page.

I could really use it.

https://community.esri.com/t5/arcgis-survey123-questions/populate-values-in-select-multiple-from-pre...

https://community.esri.com/t5/arcgis-survey123-questions/prepopulate-answers-in-a-repeat-with-last-v...

There are more but I cannot find them.  Hope that helps