<?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 repeat fields by index from a multiple choice question in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1548458#M59633</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/353064"&gt;@KimberlyMcCallum&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to send the fixed XLS form as im trying to create a very similar survey?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 17:53:14 GMT</pubDate>
    <dc:creator>JoshB123</dc:creator>
    <dc:date>2024-10-14T17:53:14Z</dc:date>
    <item>
      <title>Populate repeat fields by index from a multiple choice question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1012748#M31721</link>
      <description>&lt;P&gt;I am trying to use the results of a multiple choice question to automatically generate and populate repeat records. I decided this was possible after reading &lt;A href="http://selected-at(${Treatments},${tempIndex})" target="_blank" rel="noopener"&gt;this post&lt;/A&gt;&amp;nbsp;and response by &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;but I'm struggling to implement the suggested solution. I used the &lt;EM&gt;count-selected(${question})&lt;/EM&gt; in the &lt;EM&gt;repeat_count&lt;/EM&gt; field to set up the number of repeats. I am trying to figure out how to populate the &lt;EM&gt;treatmentName&lt;/EM&gt;&amp;nbsp;field based on the selected values by their index. As suggested, I am using the &lt;EM&gt;once()&lt;/EM&gt; and &lt;EM&gt;count()&lt;/EM&gt; functions but I don't really understand how these should work in this context and am even more confused by the fact that I have something that&amp;nbsp;&lt;EM&gt;appears&lt;/EM&gt; to work when previewed locally in Survey123 Connect but doesn't work when I publish the survey...&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the attached survey I have an outer repeat with a multiple choice question for treatments. The number of selected treatments is used to generate the number of treatment repeats (this works) and I'd like the treatment value to be populated in the&amp;nbsp;&lt;EM&gt;treatmentName&amp;nbsp;&lt;/EM&gt;field (this doesn't work). Can anyone help me troubleshoot how to pull the treatment names into the repeats?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, this is a simple test example to learn how to do this. Eventually, I will be trying to edit an existing feature service with related records. I read that Survey123 webforms do not support nested repeats and I'm confused as this approach seems to be working (with the exception of automatically populating the fields). I would would be grateful for any clarification here!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 20:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1012748#M31721</guid>
      <dc:creator>KimberlyMcCallum</dc:creator>
      <dc:date>2020-12-29T20:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Populate repeat fields by index from a multiple choice question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013622#M31750</link>
      <description>&lt;P&gt;Not sure about the webform part but I do a lookup based on repeat number so that I can have 1=A, 2=B, 3=C, etc.&lt;/P&gt;&lt;P&gt;I do the once(count) then a pulldata to a csv to translate.&lt;/P&gt;&lt;P&gt;Type&amp;nbsp; &amp;nbsp;Name&amp;nbsp; &amp;nbsp; Calculation&lt;/P&gt;&lt;P&gt;calculate RepeatCount&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;calculate TransectNum&amp;nbsp;&amp;nbsp;once(count(${RepeatCount}))&lt;BR /&gt;calculate Transect&amp;nbsp; &amp;nbsp;pulldata('TransectCodesMid', 'TransectLetter', 'TransectNum', ${TransectNum})&lt;BR /&gt;&lt;BR /&gt;CSV is attached inline images seem broke.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 16:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013622#M31750</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-01-04T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Populate repeat fields by index from a multiple choice question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013803#M31763</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;! Thank you for heeding my call for help! It looks like your application is/was somewhat different than mine; however, based on your example, I was able to fix my XLS form syntax and make it work reliably in Survey123 Connect locally. Thanks! Unfortunately, when I publish the survey, the automatic population of the repeat fields based on the select_multiple question does not work and I fear that this is simply due to nested repeats not being supported in the Survey123 web form? My next move will be to find and add to the feature request list and then find a clever workaround where I don't need to have nested repeats!&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my workflow, I have multiple surveys that target a somewhat complex existing feature layer with related tables. The parent feature layer contains fire incident point locations with related tables containing 1. threatened resources and 2. mitigation treatments. In my schema currently, these two related tables are modeled as siblings (related via the fire point parent) but in my survey, I want a user to be able to select multiple treatments within the threatened resources repeat and have these values automatically populated in the&amp;nbsp;mitigation treatment repeats... I know it's a bit complicated to explain but if you or anyone has a clever idea for how to approach this, I'd be very grateful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 22:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013803#M31763</guid>
      <dc:creator>KimberlyMcCallum</dc:creator>
      <dc:date>2021-01-04T22:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Populate repeat fields by index from a multiple choice question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013929#M31765</link>
      <description>&lt;P&gt;I am not sure on the webform and repeats.&amp;nbsp; But I would try the app and see.&amp;nbsp; If that works use the app.&amp;nbsp; For fires you will prob be offline and need a app anyway.&lt;/P&gt;&lt;P&gt;But it sounds more like you want 2 diff repeats in the same form instead of a nested?&amp;nbsp; I would need to see more of your form.&amp;nbsp; Post or you can DM me.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 14:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1013929#M31765</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-01-05T14:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Populate repeat fields by index from a multiple choice question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1548458#M59633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/353064"&gt;@KimberlyMcCallum&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to send the fixed XLS form as im trying to create a very similar survey?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 17:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/populate-repeat-fields-by-index-from-a-multiple/m-p/1548458#M59633</guid>
      <dc:creator>JoshB123</dc:creator>
      <dc:date>2024-10-14T17:53:14Z</dc:date>
    </item>
  </channel>
</rss>

