<?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: Dynamic Select List bugs in Web App? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-select-list-bugs-in-web-app/m-p/1551679#M59767</link>
    <description>&lt;P&gt;Okay, I found a workaround. I'll share in case anyone else comes up with a reason to emulate.&lt;/P&gt;&lt;P&gt;After looking at the JSON submitted in a S123 Connect example, I discovered that my attempt with join() resulted in a list variable like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; "list": "1,2,3"&lt;/P&gt;&lt;P&gt;Conversely, a multiselect question resulted in a list variable like&lt;/P&gt;&lt;P&gt;&amp;nbsp; "list": [1,2,3]&lt;/P&gt;&lt;P&gt;The webapp didn't play well with the first format when using a choice_filter like "selected(${list}, name)" (where name is referring to the 'name' column on the choices tab).&lt;/P&gt;&lt;P&gt;So, in order to get that properly formatted list, I added another select_multiple question with the list in question, with a hidden appearance and a calculation of ${list}. That new field could then be used on the final list (List B above) as the choice filter.&lt;/P&gt;&lt;P&gt;The only hang up I found was that if the 2nd repeat I was using had specific relevant condition, it caused Issue #1 above to arise again. Some relevant statements were fine, others, not so much.&lt;/P&gt;&lt;P&gt;I doubt that's as clear as it needs to be. Drop a note if you need an example.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 02:30:43 GMT</pubDate>
    <dc:creator>BBurkholder</dc:creator>
    <dc:date>2024-10-24T02:30:43Z</dc:date>
    <item>
      <title>Dynamic Select List bugs in Web App?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-select-list-bugs-in-web-app/m-p/1550234#M59714</link>
      <description>&lt;P&gt;I'm populating a list of values from select_one in a repeat (List A), then using that list to dynamically filter a select list (List B) after the repeat. Both draw from the same choice list_name.&lt;/P&gt;&lt;P&gt;I'm using the regex() method outlined here to create a dynamic select list via the choice_filter:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-filter-created-from-repeat-select/m-p/1014102/highlight/true#M31769" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-filter-created-from-repeat-select/m-p/1014102/highlight/true#M31769&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Using selected() also works.&lt;/P&gt;&lt;P&gt;This seems to work flawlessly in S123 Connect and the Mobile app. However, in the Web app, there may be two bugs:&lt;/P&gt;&lt;P&gt;1. The dynamic list (List B) does not show the checkboxes. Regardless, you can select an answer. If you put this question in a repeat (change group to repeat) and open a new record after completing List A, the checkboxes will display. If you add a value to List A, the checkboxes then disappear on that record as well.&lt;BR /&gt;2. If you add a value to the value list (List A), all selections in List B are deleted.&lt;/P&gt;&lt;P&gt;Although I'm using a select_multiple for List B, the same issues arise with select_one. Otherwise, I've simplified this example as much as possible (probably to the point where it doesn't make sense, but List B is inside a repeat with a bunch of other questions and is functionally linking the two repeats with a many-to-many relationship.)&lt;/P&gt;&lt;P&gt;Any workarounds? Unfortunately, this form would be used in the Web app.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 23:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-select-list-bugs-in-web-app/m-p/1550234#M59714</guid>
      <dc:creator>BBurkholder</dc:creator>
      <dc:date>2024-10-18T23:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Select List bugs in Web App?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-select-list-bugs-in-web-app/m-p/1551679#M59767</link>
      <description>&lt;P&gt;Okay, I found a workaround. I'll share in case anyone else comes up with a reason to emulate.&lt;/P&gt;&lt;P&gt;After looking at the JSON submitted in a S123 Connect example, I discovered that my attempt with join() resulted in a list variable like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; "list": "1,2,3"&lt;/P&gt;&lt;P&gt;Conversely, a multiselect question resulted in a list variable like&lt;/P&gt;&lt;P&gt;&amp;nbsp; "list": [1,2,3]&lt;/P&gt;&lt;P&gt;The webapp didn't play well with the first format when using a choice_filter like "selected(${list}, name)" (where name is referring to the 'name' column on the choices tab).&lt;/P&gt;&lt;P&gt;So, in order to get that properly formatted list, I added another select_multiple question with the list in question, with a hidden appearance and a calculation of ${list}. That new field could then be used on the final list (List B above) as the choice filter.&lt;/P&gt;&lt;P&gt;The only hang up I found was that if the 2nd repeat I was using had specific relevant condition, it caused Issue #1 above to arise again. Some relevant statements were fine, others, not so much.&lt;/P&gt;&lt;P&gt;I doubt that's as clear as it needs to be. Drop a note if you need an example.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 02:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-select-list-bugs-in-web-app/m-p/1551679#M59767</guid>
      <dc:creator>BBurkholder</dc:creator>
      <dc:date>2024-10-24T02:30:43Z</dc:date>
    </item>
  </channel>
</rss>

