<?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 Editing after a change to select_one choice list in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533577#M58880</link>
    <description>&lt;P&gt;How do you handle situations where your choices for a select_one question are dynamic (i.e. they change over time) and you need to edit a previous submission?&lt;/P&gt;&lt;P&gt;According to Esri, "&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838" target="_blank"&gt;The use of dynamic (constantly changing) choice lists in Survey123 has become a popular feature…&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;For example, values are removed from the choice list, but previous submissions need to retain their existing value when editing a submission, even if that choice is no longer in the list.&lt;/P&gt;&lt;P&gt;I have a select_one question that gets its choices from a feature table using &lt;I&gt;search&lt;/I&gt; with a URL in the &lt;I&gt;appearance &lt;/I&gt;setting, as described in the link above. But when you open a previous submission to edit it, the existing value for that question gets cleared out if the value is no longer in the choice list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding calculationMode=whenEmpty to bind::esri::parameters doesn't help. And adding the select_one question separately and making it visible or relevant only when the original value is blank results in a dependency error.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 20:56:37 GMT</pubDate>
    <dc:creator>JeffShaw</dc:creator>
    <dc:date>2024-08-30T20:56:37Z</dc:date>
    <item>
      <title>Editing after a change to select_one choice list</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533577#M58880</link>
      <description>&lt;P&gt;How do you handle situations where your choices for a select_one question are dynamic (i.e. they change over time) and you need to edit a previous submission?&lt;/P&gt;&lt;P&gt;According to Esri, "&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838" target="_blank"&gt;The use of dynamic (constantly changing) choice lists in Survey123 has become a popular feature…&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;For example, values are removed from the choice list, but previous submissions need to retain their existing value when editing a submission, even if that choice is no longer in the list.&lt;/P&gt;&lt;P&gt;I have a select_one question that gets its choices from a feature table using &lt;I&gt;search&lt;/I&gt; with a URL in the &lt;I&gt;appearance &lt;/I&gt;setting, as described in the link above. But when you open a previous submission to edit it, the existing value for that question gets cleared out if the value is no longer in the choice list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding calculationMode=whenEmpty to bind::esri::parameters doesn't help. And adding the select_one question separately and making it visible or relevant only when the original value is blank results in a dependency error.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 20:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533577#M58880</guid>
      <dc:creator>JeffShaw</dc:creator>
      <dc:date>2024-08-30T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Editing after a change to select_one choice list</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533592#M58882</link>
      <description>&lt;P&gt;Add a new column to your "choices" after "label" and name it "enabled" or some other name you like. For every choice set the column to 1 if it's enabled or 0 if it isn't. Then go back to the "survey" tab, go to the "choice_filter" column and set it to "enabled=1". Now the only choices in the form are those that you've enabled, but the entire list is intact for compatibility.&lt;/P&gt;&lt;P&gt;This might cause issues with editing forms if older data is edited through the inbox instead of another ArcGIS app. One thing you can try is adding a hidden field with the default set to a version number, then every time you adjust the list you bump the version number and make the "enabled" value that version. Then you can do "(enabled = 3 and ${version} = 3) or (enabled = 2 and ${version} = 2)" etc. This isn't something I've tried personally but it should be a step in the right direction.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 21:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533592#M58882</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2024-08-30T21:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Editing after a change to select_one choice list</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533665#M58883</link>
      <description>&lt;P&gt;Those are great ideas David and I hadn't tried using the choice_filter column. Unfortunately I couldn't get it to work the way I hoped.&lt;/P&gt;&lt;P&gt;The value is being preserved if you resubmit, but I had wanted to display the existing value in the pulldown, rather than nothing as shown below.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffShaw2_0-1725070782125.png" style="width: 230px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114081i3DA3FC83D3724B34/image-dimensions/230x47?v=v2" width="230" height="47" role="button" title="JeffShaw2_0-1725070782125.png" alt="JeffShaw2_0-1725070782125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am pulling the choices from a feature table rather than a CSV or the choices tab, and I can't get the choice_filter column expression to work at all -- when added it always returns an empty list. I did try applying the filter as a parameter with the &lt;EM&gt;search&lt;/EM&gt; URL, and it does filter the choice list, but it doesn't solve the display problem either. The choice_filter column expression does work when getting the choices from the Choices tab, but I still get the empty pulldown if the value isn't in the filtered list, even if the value is in the unfiltered list.&lt;/P&gt;&lt;P&gt;I could make a read-only text box visible when there is an existing value, and make a select_one visible when it's null, but the question is in a repeat and I need the user to be able to add new entries. Using the calculate expression to do so is when I run into the dependency loops.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 02:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/editing-after-a-change-to-select-one-choice-list/m-p/1533665#M58883</guid>
      <dc:creator>JeffShaw</dc:creator>
      <dc:date>2024-08-31T02:26:04Z</dc:date>
    </item>
  </channel>
</rss>

