How to record repeat number in field.

154
1
Jump to solution
02-03-2021 08:29 AM
TL2
by
Occasional Contributor III

I would like to record the repeat number when collecting repeats.  In other words, the '1' from 1 of 2 for question 1 and when I am question 2, the '2'.  If I submit 10 repeats, I would like them numbered 1-10 in the feature class.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Frequent Contributor

Two ways.  

The older way is pick a field in the repeat and do once(count(field)).  Often I make a dummy filed with a value of 1 and count that.  Been using this for years.

The new way requires 3.12 which is still beta for now.  Then you can use the new function position(..) for the current repeat index.  Or position(${repeatname}) if you have multiple repeats it seems to need this.

Hope that helps.

View solution in original post

1 Reply
DougBrowning
MVP Frequent Contributor

Two ways.  

The older way is pick a field in the repeat and do once(count(field)).  Often I make a dummy filed with a value of 1 and count that.  Been using this for years.

The new way requires 3.12 which is still beta for now.  Then you can use the new function position(..) for the current repeat index.  Or position(${repeatname}) if you have multiple repeats it seems to need this.

Hope that helps.

View solution in original post