<?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: Copy a Repeat Answer to the next Repeat in Survey123 Connect in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860604#M25669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot really copy but if you know the fields are in order you can pull it off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post&amp;nbsp; I go it with Gap and with Soil Dept.&amp;nbsp; I thought there were more posts but I can't find them.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/241309-populate-a-field-within-a-repeat-from-a-previous-entry-within-same-repeat"&gt;https://community.esri.com/thread/241309-populate-a-field-within-a-repeat-from-a-previous-entry-within-same-repeat&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2020 23:12:46 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2020-03-06T23:12:46Z</dc:date>
    <item>
      <title>Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860603#M25668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a top depth and a bottom depth in a repeat...Is it possible to copy automatically a bottom depth to a top depth in the next repeat?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="484271" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/484271_Depth_Repeat.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860603#M25668</guid>
      <dc:creator>Alena</dc:creator>
      <dc:date>2020-03-06T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860604#M25669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot really copy but if you know the fields are in order you can pull it off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post&amp;nbsp; I go it with Gap and with Soil Dept.&amp;nbsp; I thought there were more posts but I can't find them.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/241309-populate-a-field-within-a-repeat-from-a-previous-entry-within-same-repeat"&gt;https://community.esri.com/thread/241309-populate-a-field-within-a-repeat-from-a-previous-entry-within-same-repeat&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 23:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860604#M25669</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-03-06T23:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860605#M25670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/migrated-users/12477"&gt;Doug Browning&lt;/A&gt;! That worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 11:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/860605#M25670</guid>
      <dc:creator>Alena</dc:creator>
      <dc:date>2020-03-09T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1121991#M38969</link>
      <description>&lt;P&gt;I'm trying to solve a similar problem, except I am looking to "carry forward" the value from 'Question 1' into the next repeat 'Question 1'. Any attempts at referencing Question 1 in a calculation&amp;nbsp;&lt;STRONG&gt;for&lt;/STRONG&gt; Question 1 result in a Dependency Cycle error - even if the value from the previous Question 1 is stored in a temporary field, and that field is referenced in the calculation. Any insights on a possible work around?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 23:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1121991#M38969</guid>
      <dc:creator>Vince_ERAC</dc:creator>
      <dc:date>2021-12-01T23:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1143373#M40507</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/8751"&gt;@Vince_ERAC&lt;/a&gt;&amp;nbsp;&amp;nbsp;This sounds like what I'm trying to do.&amp;nbsp; Did you ever get this to work?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 23:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1143373#M40507</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2022-02-11T23:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1143631#M40517</link>
      <description>&lt;P&gt;Unfortunately no.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 15:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1143631#M40517</guid>
      <dc:creator>Vince_ERAC</dc:creator>
      <dc:date>2022-02-14T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1150337#M41048</link>
      <description>&lt;P&gt;This may be a place for a calculate and field outside the repeat - something like TopDepth outside repeat - inside repeat the TopDepthRepeated question has ${TopDepth} in the calculate column. Could even make&amp;nbsp; the repeated field read only or hidden. This has worked for me in similar situations&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 19:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1150337#M41048</guid>
      <dc:creator>BrandonA_CDPH</dc:creator>
      <dc:date>2022-03-03T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a Repeat Answer to the next Repeat in Survey123 Connect</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1159725#M41773</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4984"&gt;@DanielWebb&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/8751"&gt;@Vince_ERAC&lt;/a&gt;&amp;nbsp;The way I've been able to make this work is by using a simple JavaScript function. The key there is that you can pass the whole repeat to the function and then return the field value you want so you avoid the dependency cycle error. Here's the function:&amp;nbsp;&lt;/P&gt;&lt;P&gt;function previousvalue (repeat, recordnumber, fieldname)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (recordnumber &amp;gt; 1) {&lt;/P&gt;&lt;P&gt;return repeat[recordnumber-2][fieldname];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;And here's an example of the pulldata calculation you would do in a field outside the repeat:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@javascript", "functions.js", "previousvalue", ${occupants}, ${current_record}, "occupant_name")&lt;/P&gt;&lt;P&gt;where occupants is the name of the repeat, current_record is a field&amp;nbsp;&lt;STRONG&gt;outside of the repeat&amp;nbsp;&lt;/STRONG&gt;that stores the index of&amp;nbsp; the repeat record you are currently on, and occupant_name is the name of the field inside the repeat that you want to carry the value forward for. I attached a demo .xls to help show how to set this up. This used to be slow with big repeats but with the 3.14 update I haven't encountered any issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 00:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/copy-a-repeat-answer-to-the-next-repeat-in/m-p/1159725#M41773</guid>
      <dc:creator>AndyMcClary</dc:creator>
      <dc:date>2022-03-31T00:17:54Z</dc:date>
    </item>
  </channel>
</rss>

