<?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: Populate fields between repeats in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1054690#M34362</link>
    <description>&lt;P&gt;I think it is the using a field called calculation.&amp;nbsp; I changed it to calculation22 and now it works.&amp;nbsp; It is not on the reserved list but I would not use it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1620228078650.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12590i4D1F6A271FF9204C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1620228078650.png" alt="DougBrowning_0-1620228078650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that is it&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 15:21:35 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2021-05-05T15:21:35Z</dc:date>
    <item>
      <title>Populate fields between repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1053378#M34274</link>
      <description>&lt;P&gt;Hello Geonet Users,&lt;/P&gt;&lt;P&gt;I am having difficulty populating fields between repeats. My workflow is as follows: First, several records are created in Repeat 1. Secondly, one record (w/multiple fields) is entered into Repeat 2. I need the fields from Repeat 2 to populate all records created in Repeat 1. Currently, only the last record in Repeat 1 is being populated. The remaining records have a refresh button. The problem with the refresh button is that the fields will be hidden. I have tried a couple of different approaches: calculating the field outside of both repeats and using the&amp;nbsp; &lt;EM&gt;indexed-repeat&lt;/EM&gt; formula. Neither seem to work. Maybe some JavaScript function might help, but I am not familiar with writing JavaScript. Any help with this will be greatly appreciated. Attached is an example file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 19:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1053378#M34274</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2021-04-30T19:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1054690#M34362</link>
      <description>&lt;P&gt;I think it is the using a field called calculation.&amp;nbsp; I changed it to calculation22 and now it works.&amp;nbsp; It is not on the reserved list but I would not use it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1620228078650.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12590i4D1F6A271FF9204C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1620228078650.png" alt="DougBrowning_0-1620228078650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that is it&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1054690#M34362</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-05T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055767#M34437</link>
      <description>&lt;P&gt;Hi Doug,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look, I should not have used "calculation" as as field name. I made the change as per your suggestion though if you add multiple people before adding the HHID/City on page two only the last person&lt;/P&gt;&lt;P&gt;repeat will be populated with the values. The other records in the repeat have a refresh button next to them.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewPadilla_0-1620409003752.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12833iE168C557AAB864EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewPadilla_0-1620409003752.png" alt="AndrewPadilla_0-1620409003752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since they will be hidden fields they will not recalculate once created. As a work around, I ended up putting a relevant HHID and City field before the Person repeat which populates the hidden HHID and City fields. I was trying to avoid having to create extra fields but ended up doing so this time. Attached is a revised example. Thanks again for taking a look.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055767#M34437</guid>
      <dc:creator>AndrewPadilla</dc:creator>
      <dc:date>2021-05-07T17:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055772#M34438</link>
      <description>&lt;P&gt;Did you try calculate type instead of hidden?&amp;nbsp; Those should fire diff than text would.&amp;nbsp; Sorry still not really getting your workflow.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055772#M34438</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-07T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055800#M34442</link>
      <description>&lt;P&gt;Oh I just saw now you are using repeat count.&amp;nbsp; That is prob your issue.&amp;nbsp; Using repeat count preloads all the repeats at the start.&amp;nbsp; This can cause all kinds of issues with calcs.&amp;nbsp; I have posted on this but I cannot find it.&lt;/P&gt;&lt;P&gt;In the end I had to remove all my repeat counts as they just do not work right.&amp;nbsp; 3.13 is supposed to tackle a number of these.&amp;nbsp; Instead I count and they tell then with a constraint if they add too many.&amp;nbsp; Works much better.&lt;/P&gt;&lt;P&gt;Try removing repeat count and see.&amp;nbsp; I am not sure why you would use a repeat for just 1 record really.&amp;nbsp; Maybe just testing.&lt;/P&gt;&lt;P&gt;But yes it will not go back through all the repeats and populate them if you change it later.&amp;nbsp; I would not show the repeats until they pick a city then nothing to worry about.&lt;/P&gt;&lt;P&gt;Normally I also only push the key into a repeat otherwise you are just double storing data.&amp;nbsp; If you say want to change the city then you have to find and change all of the subtables instead of just changing it in 1 place.&amp;nbsp; They can get mismatched easily.&amp;nbsp; It would be like storing your address in each individual bill vs just changing it in your person record.&lt;/P&gt;&lt;P&gt;Well hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 18:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-fields-between-repeats/m-p/1055800#M34442</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-07T18:17:09Z</dc:date>
    </item>
  </channel>
</rss>

