Previous values - Repeat groups

01-26-2021 09:28 AM
New Contributor II

Dear all,

I hope all is well. I would like to know if is possible to copy or duplicate the previous data in the next group repeat questions.

We need to add new information in the new group based the previous data (repeat group), in this way the idea is to have per default the previous data.

In advance, thanks!

Tags (2)
0 Kudos
3 Replies
Esri Frequent Contributor

Hi Mauricio. You may want to have a look at the position(..) and indexed-repeat() functions. These are documented in the Early Adopter Community site and are planned to be made available and documented in our next update (version 3.12)

New Contributor II

Thanks Ismael. 

In fact, I share one example:

Into the first visit the doctor asked and filled the Clinical history of a person, but during the second visit, another doctor needs to check if the data is complet; In this way, the second doctor needs to complement based the first data (No modify the original information).


0 Kudos
MVP Frequent Contributor

Ismael I was testing this but it is a no go.  indexed-repeat will let you SEE the previous value, but no you cannot inherit it into the field since that causes a cyclical loop.  Which is a major bummer.  123 cannot tell the diff between FieldA in repeat 1 and FieldA in repeat 2.  So it says I cannot copy FieldA to FieldA.

Unless someone has thought of something.  I posted all of this in the early adopter forum.  For us we really just want a Same as Last Repeat button like we had in our old app.  Would be a huge time saver.{... 

I am not sure this is fixable the way 123 works.  

Now if you want to carry over say the max value or something I have got that to work.  See my post here

and here

Hope that helps

0 Kudos