<?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: Need Help Adding Filter to Survey123 search() Expression in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/need-help-adding-filter-to-survey123-search/m-p/1621850#M62917</link>
    <description>&lt;P&gt;Here's the parameter layout for the search() function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;search(tableName, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reason your example, where the TBD doesn't work, is because there are 6 parameters for the search() function and 'nestFinalStatus' and 'TBD' are parameters 7 and 8.&amp;nbsp; It doesn't know what to do with those.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372:~:text=The%20choice%20list%20can%20also%20be%20filtered%20using%20a%20WHERE%20expression.%20When%20using%20the%20following%20example%20as%20the%20tableName%2C%20the%20choice%20list%20will%20be%20filtered%20to%20show%20only%20states%20whose%20name%20is%20not%20Alabama%20or%20Alaska%3A" target="_self"&gt; search()&lt;/A&gt; function does allow a &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_635E85B962D64E699F1C277423026A52:~:text=update%20existing%20responses.-,WHERE%20expressions,-The%20surveys%20available" target="_self"&gt;WHERE&lt;/A&gt; expression and I think you're close with your last example.&amp;nbsp; What I would try for the where query is just the nestFinalStatus = 'TBD' and then use the beach code and survey years as the search and filter parts of the function. So something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;autocomplete search("nest_ID_List?url=&lt;A href="https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=nestFinalStatus='TBD'" target="_self"&gt;https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=nestFinalStatus='TBD'&lt;/A&gt;", "matches", "beach_Code", ${beach_Code}, "survey_Year", "2025")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2025 15:24:58 GMT</pubDate>
    <dc:creator>TylerGraham2</dc:creator>
    <dc:date>2025-06-09T15:24:58Z</dc:date>
    <item>
      <title>Need Help Adding Filter to Survey123 search() Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-help-adding-filter-to-survey123-search/m-p/1621163#M62892</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m working on a Survey123 form using the search() appearance with an autocomplete question. The goal is to filter results by beach code, survey year (2025), and nest final status ('TBD').&amp;nbsp;&amp;nbsp;The solution needs to work in the Survey123 web app.&lt;/P&gt;&lt;P&gt;Here’s the current expression I’m using, which works for filtering by beach code and year:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;autocomplete search("nest_ID_List?url=&lt;A href="https://services.arcgis.com/Qv.../arcgis/rest/services/survey123_123...._results/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/Qv.../arcgis/rest/services/survey123_123...._results/FeatureServer/0&lt;/A&gt;",'matches','beach_Code',${beach_Code},'survey_Year','2025')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;However, I'm struggling to add a condition that filters for nestFinalStatus = 'TBD'. When I try to include this in the where clause or as an additional match parameter, the autocomplete stops returning results or ignore the TBD filter parameter.&lt;/P&gt;&lt;P&gt;This code work but it&amp;nbsp;ignore the TBD filter parameter.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;autocomplete search("nest_ID_List?url=&lt;A href="https://services.arcgis.com/QV.../arcgis/rest/services/survey123_1a8...1_results/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/QV.../arcgis/rest/services/survey123_1a8...1_results/FeatureServer/0&lt;/A&gt;",'matches','beach_Code',${beach_Code},'survey_Year','2025','nestFinalStatus','TBD')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to structure the expression correctly?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;Note: The codes below does work in connect and mobile app but not in web-app:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;1) autocomplete search("nest_ID_List?url=&lt;A href="https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=beach_Code=" target="_blank" rel="noopener"&gt;https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=beach_Code=&lt;/A&gt;'" + ${beach_Code} + "' AND survey_Year=2025 AND nestFinalStatus='TBD'")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 13:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-help-adding-filter-to-survey123-search/m-p/1621163#M62892</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2025-06-05T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Adding Filter to Survey123 search() Expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-help-adding-filter-to-survey123-search/m-p/1621850#M62917</link>
      <description>&lt;P&gt;Here's the parameter layout for the search() function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;search(tableName, searchType, searchColumn, searchText, filterColumn, filterText)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reason your example, where the TBD doesn't work, is because there are 6 parameters for the search() function and 'nestFinalStatus' and 'TBD' are parameters 7 and 8.&amp;nbsp; It doesn't know what to do with those.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformsappearance.htm#ESRI_SECTION1_46A700D2AABF47F1AE4D5004762DB372:~:text=The%20choice%20list%20can%20also%20be%20filtered%20using%20a%20WHERE%20expression.%20When%20using%20the%20following%20example%20as%20the%20tableName%2C%20the%20choice%20list%20will%20be%20filtered%20to%20show%20only%20states%20whose%20name%20is%20not%20Alabama%20or%20Alaska%3A" target="_self"&gt; search()&lt;/A&gt; function does allow a &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_635E85B962D64E699F1C277423026A52:~:text=update%20existing%20responses.-,WHERE%20expressions,-The%20surveys%20available" target="_self"&gt;WHERE&lt;/A&gt; expression and I think you're close with your last example.&amp;nbsp; What I would try for the where query is just the nestFinalStatus = 'TBD' and then use the beach code and survey years as the search and filter parts of the function. So something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;autocomplete search("nest_ID_List?url=&lt;A href="https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=nestFinalStatus='TBD'" target="_self"&gt;https://services.arcgis.com/QVE.../arcgis/rest/services/survey1....d1_results/FeatureServer/0&amp;amp;where=nestFinalStatus='TBD'&lt;/A&gt;", "matches", "beach_Code", ${beach_Code}, "survey_Year", "2025")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 15:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-help-adding-filter-to-survey123-search/m-p/1621850#M62917</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-06-09T15:24:58Z</dc:date>
    </item>
  </channel>
</rss>

