<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculate Sequential Integer for Repeats in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1476227#M57002</link>
    <description>&lt;P&gt;great stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;position(..) worked a treat. thx&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 13:01:07 GMT</pubDate>
    <dc:creator>MarkWILSON_LLS</dc:creator>
    <dc:date>2024-05-21T13:01:07Z</dc:date>
    <item>
      <title>Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418353#M56655</link>
      <description>&lt;P&gt;Is there a method to calculate a sequential integer field for the number of repeats, more specifically for a photo number. I want to populate a field as I add photo repeats, so that I have photo #1, photo #2, photo #3, etc...i was doing this using a count calculation, but have found that if i go back to a previous record before i submit the survey, the photo # value gets repopulated with the total (ie if i have 5 photo repeats all the photo #s get recalculated to "5", rather than 1, 2, 3, 4, 5.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 20:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418353#M56655</guid>
      <dc:creator>Blevins_Mark</dc:creator>
      <dc:date>2024-05-02T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418366#M56656</link>
      <description>&lt;P&gt;Add a once() around your count then it will not do that.&amp;nbsp; You can also use once(position(..)) but I have seen some bugs with it.&lt;/P&gt;&lt;P&gt;But note if a user goes back a few repeats and deletes a repeat then adds a new one you will get a dup.&amp;nbsp; No real way around this.&amp;nbsp; I personally gave up and instead number them all later when I export to to the file system in Python.&amp;nbsp; Way more reliable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also we have had users name the site wrong at the start and then we fix it in QA.&amp;nbsp; But at that point all the photo names are then wrong.&amp;nbsp; Also had issues with users adding dup named photos.&lt;/P&gt;&lt;P&gt;It sounds great in theory if it all goes perfect but it never does.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 20:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418366#M56656</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-05-02T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418390#M56657</link>
      <description>&lt;P&gt;I use a calculate with &lt;STRIKE&gt;index(..)&lt;/STRIKE&gt; &lt;STRONG&gt;position(..)&lt;/STRONG&gt; in my repeats. Then I use that for calculating image #. Essentially, it indexes your repeat starting at 1.&lt;/P&gt;&lt;P&gt;EDIT: Long week...&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418390#M56657</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-05-03T15:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418410#M56659</link>
      <description>&lt;P&gt;I do not see index() listed in the functions and when I tested it the form says no such function?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1714685083912.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102916i9E69271420CAC156/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1714685083912.png" alt="DougBrowning_0-1714685083912.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 21:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418410#M56659</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-05-02T21:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418420#M56660</link>
      <description>&lt;P&gt;Position (..) does what he was talking about. That’s pretty close to what I want. The order still gets a little out of whack if one of the repeats gets deleted before submitting, but all in all is pretty close to what I need and doesn’t have the issue of the numbers getting recalced if I browse through the repeats. Thanks all.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 21:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418420#M56660</guid>
      <dc:creator>Blevins_Mark</dc:creator>
      <dc:date>2024-05-02T21:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418431#M56661</link>
      <description>&lt;P&gt;You may still need to wrap it in a once() as I think it has got me before so I would test it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 21:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418431#M56661</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-05-02T21:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418732#M56673</link>
      <description>&lt;P&gt;Two things.&lt;/P&gt;&lt;P&gt;For your auto numbering, do you just need it at the Feature Report level? In that case, have you considered using MS Word's quick parts? You can get auto numbering that way. I use it a lot for photos.&lt;/P&gt;&lt;P&gt;And just for the sake of clarity in case someone else stumbles across this in the future, this is the format for &lt;STRONG&gt;position(..)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1714749400083.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103013iFA2936AC34B2BAB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1714749400083.png" alt="abureaux_0-1714749400083.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;EDITED because it's been a long week...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418732#M56673</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-05-03T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418749#M56675</link>
      <description>&lt;P&gt;1. no it needs to be passed to the record in the feature layer primarily for map labeling purposes.&lt;/P&gt;&lt;P&gt;2. index(..) throws an error for me in connect. i've seen a couple of folks reference this but there is no index(..) in esri's survey123 formula documentation. however,&amp;nbsp; position(..) does pretty much what i need and is the same concept as indexing the record, wrapped in once() to ensure there are no duplicates in case one of the repeats gets deleted from the form before it is submitted.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:08:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418749#M56675</guid>
      <dc:creator>Blevins_Mark</dc:creator>
      <dc:date>2024-05-03T15:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418757#M56676</link>
      <description>&lt;P&gt;1) Darn...&lt;/P&gt;&lt;P&gt;2) It's been a long week. Ya, It's &lt;STRONG&gt;position(..)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1418757#M56676</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-05-03T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1476227#M57002</link>
      <description>&lt;P&gt;great stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;position(..) worked a treat. thx&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1476227#M57002</guid>
      <dc:creator>MarkWILSON_LLS</dc:creator>
      <dc:date>2024-05-21T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1599047#M61841</link>
      <description>&lt;P&gt;Maybe someone here can help me. I am trying to add just one to the previous value on a repeat, which seems to be the same for all of you. However, using count() or position() returns an invalid error. Do I need a default value? What is the trick here? I am doing once(count(${TreeNumber})+1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: This seems to work when I create a new field just fine but I am trying to calculate this within the TreeNumber field that way when they add a repeat, the tree number goes from 1 to 2. Seems simple but I keep getting an error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 15:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1599047#M61841</guid>
      <dc:creator>JustinH</dc:creator>
      <dc:date>2025-03-25T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sequential Integer for Repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1599066#M61844</link>
      <description>&lt;P&gt;What is the field type?&amp;nbsp; If you use note it defaults to string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use bind::esri type&lt;/P&gt;&lt;P&gt;or set to integer then appearance to hidden.&lt;/P&gt;&lt;P&gt;Hard to tell without the form.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 16:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-sequential-integer-for-repeats/m-p/1599066#M61844</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-03-25T16:11:55Z</dc:date>
    </item>
  </channel>
</rss>

