<?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: Query parameters in search appearance expression in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1636444#M63526</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;do you have any ideas on this issue? I am running into a similar issue where the search function works fine with a where clause using the mobile app but not in the web form. Does the web form not support the where clause in a search appearance? I've tried Sarah's work around above and am getting the same error. They mentioned version 3.19 so I tried adding&amp;nbsp; "?version=3.19" to the end of my URL but the same error shows up.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 17:26:03 GMT</pubDate>
    <dc:creator>Tim-Woodfield</dc:creator>
    <dc:date>2025-07-25T17:26:03Z</dc:date>
    <item>
      <title>Query parameters in search appearance expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1526084#M58663</link>
      <description>&lt;P data-unlink="true"&gt;Can someone confirm for me that when searching a hosted feature layer to populate a select_one field appending query request parameters to the REST endpoint does not work in the web app? This limitation is not listed in the &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; but I get pretty funky behaviour.&lt;/P&gt;&lt;P data-unlink="true"&gt;For context, I have a drop down that I want to populate from a hosted feature layer. I need to filter the values based on a previous selection but I need to search multiple fields so I can't use the &lt;EM&gt;searchType, searchColumn and searchText&lt;/EM&gt; parameters.&lt;/P&gt;&lt;P data-unlink="true"&gt;My solution is to query for the relevant records using the &lt;EM&gt;where&lt;/EM&gt; query parameter. So, my appearance column looks like this -&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;w3 autocomplete search(concat("list_town?url=https://services2.arcgis.com/aIrBD8yn1TDTEXoz/ArcGIS/rest/services/Towns/FeatureServer/0/&amp;amp;where=CountyIntersect_1=",${county}," OR CountyIntersect_2=",${county}," OR CountyIntersect_3=",${county}," OR CountyIntersect_4=",${county}))&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;This works great in the Survey123 Connect app. When I look at the request in Fiddler all looks correct and the expected values show up in the drop down.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_3-1724353816764.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113289iACA7409F79619ABF/image-size/large?v=v2&amp;amp;px=999" role="button" title="JillianStanford_3-1724353816764.png" alt="JillianStanford_3-1724353816764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I publish the survey and open it in the web app, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_1-1724353684038.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113287iFF804E957491655B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JillianStanford_1-1724353684038.png" alt="JillianStanford_1-1724353684038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's failing to load because it appears that the where parameter for the request makes no sense.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JillianStanford_2-1724353733873.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113288iB5E6C85A4303CFD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="JillianStanford_2-1724353733873.png" alt="JillianStanford_2-1724353733873.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I out of luck with this solution or do I need to configure the field differently?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 19:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1526084#M58663</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2024-08-22T19:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query parameters in search appearance expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1537894#M59118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86115"&gt;@JillianStanford&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding a calculate question before your select_one question, and moving the whole concat statement to the&amp;nbsp;calculation field. So this -&amp;nbsp;&amp;nbsp;&lt;EM&gt;concat("list_town?url=&lt;A href="https://services2.arcgis.com/aIrBD8yn1TDTEXoz/ArcGIS/rest/services/Towns/FeatureServer/0/&amp;amp;where=CountyIntersect_1=" target="_blank"&gt;https://services2.arcgis.com/aIrBD8yn1TDTEXoz/ArcGIS/rest/services/Towns/FeatureServer/0/&amp;amp;where=CountyIntersect_1=&lt;/A&gt;",${county}," OR CountyIntersect_2=",${county}," OR CountyIntersect_3=",${county}," OR CountyIntersect_4=",${county})&amp;nbsp;&amp;nbsp;&lt;/EM&gt;- will be in a new calculate question.&lt;/P&gt;&lt;P&gt;Then, in your select_one question appearance, enter&amp;nbsp;&lt;EM&gt;autocomplete search(${calculate_question_with_concat})&amp;nbsp;&lt;/EM&gt;to reference the concat statement.&lt;/P&gt;&lt;P&gt;What version of S123 connect are you using? I've encountered what I think is a bug with the&lt;A href="https://doc.arcgis.com/en/survey123/get-started/whatsnewsurvey123.htm#ESRI_SECTION1_D2489DAA34B74177B43725A03590AEE9" target="_self"&gt; latest S123 update&lt;/A&gt;&amp;nbsp;that affects search appearance questions in the 3.20 version of the web app. My workaround has been to publish the survey using a 3.19 version of Survey123 connect, and on the Survey123 website in &lt;EM&gt;Settings &amp;gt; Version&lt;/EM&gt; select&amp;nbsp;&lt;EM&gt;Use the version the survey was published with (3.19).&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1537894#M59118</guid>
      <dc:creator>Sarah_Gates</dc:creator>
      <dc:date>2024-09-12T17:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query parameters in search appearance expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1537899#M59120</link>
      <description>&lt;P&gt;Hi Sarah,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;It looks like I am using Survey123 Connect version 3.19.104.&lt;/P&gt;&lt;P&gt;If I get a chance I will try your solution.&lt;/P&gt;&lt;P&gt;As a workaround, what I ended up doing is denormalizing the records into a hosted csv and searching that. It's not as dynamic as I would like and is one more piece of content to maintain but it allowed me to keep moving forward.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1537899#M59120</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2024-09-12T17:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query parameters in search appearance expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1636444#M63526</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;do you have any ideas on this issue? I am running into a similar issue where the search function works fine with a where clause using the mobile app but not in the web form. Does the web form not support the where clause in a search appearance? I've tried Sarah's work around above and am getting the same error. They mentioned version 3.19 so I tried adding&amp;nbsp; "?version=3.19" to the end of my URL but the same error shows up.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 17:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-parameters-in-search-appearance-expression/m-p/1636444#M63526</guid>
      <dc:creator>Tim-Woodfield</dc:creator>
      <dc:date>2025-07-25T17:26:03Z</dc:date>
    </item>
  </channel>
</rss>

