Autopopulate multiple positions in repeats

185
1
02-18-2022 03:44 PM
JeremieCote
New Contributor III

Hi,

Is there a way to autopopulate the answer to a question inside a repeat at multiple positions using calculations?

For exemple, consider a text question named Animal that takes in a string as answer (ex: Dog)

When the user writes Dog, another question that is inside a repeat get autopopulated (at position 1).

Now if the user changes his mind and replace Dog by Cat in the text question outside the repeat, I would like the question inside de repeat to get autopopulated at position 2 (with a different answer that in position 1). And so on.

Is this possible?

0 Kudos
1 Reply
IsmaelChivite
Esri Notable Contributor

I think this should do.

IsmaelChivite_0-1645289277364.png

The pet question within the repeat is calculated when the record within the repeat is loaded (displayed). If new record, the calculation replaces the empty value with the selection outside the repeat.  If revisiting a record, the calculation will not overwrite the existing value, but a recalculation button will be shown in case the user wants to recalculate.  Changing the pet question outside the repeat only affects the visible record.

Pt.gif

 

 

0 Kudos