<?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 Trying to get the Search() function to work with a feature service in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1604384#M62087</link>
    <description>&lt;P&gt;I'm out of ideas with the Search() function after trying all kinds of iterations. I'm simply trying to use Search() from a feature service to populate the drop down with choices from a field. The second question will do the same using the first answer as a filter&lt;/P&gt;&lt;P&gt;What I have for question 1 is below. I'm looking to use that feature service and populate the dropdown with all values in the field "Trail_System"&lt;/P&gt;&lt;P&gt;autocomplete search('trailsystem?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5&lt;/A&gt;')&lt;/P&gt;&lt;P&gt;And this doesn't return any results. I've also tried:&lt;/P&gt;&lt;P&gt;autocomplete search('trailname?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5','matches" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5','matches&lt;/A&gt;', 'Trail_System'&lt;/P&gt;&lt;P&gt;and others with no luck. What am I missing?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 20:36:47 GMT</pubDate>
    <dc:creator>MaxMolello</dc:creator>
    <dc:date>2025-04-09T20:36:47Z</dc:date>
    <item>
      <title>Trying to get the Search() function to work with a feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1604384#M62087</link>
      <description>&lt;P&gt;I'm out of ideas with the Search() function after trying all kinds of iterations. I'm simply trying to use Search() from a feature service to populate the drop down with choices from a field. The second question will do the same using the first answer as a filter&lt;/P&gt;&lt;P&gt;What I have for question 1 is below. I'm looking to use that feature service and populate the dropdown with all values in the field "Trail_System"&lt;/P&gt;&lt;P&gt;autocomplete search('trailsystem?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5&lt;/A&gt;')&lt;/P&gt;&lt;P&gt;And this doesn't return any results. I've also tried:&lt;/P&gt;&lt;P&gt;autocomplete search('trailname?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5','matches" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5','matches&lt;/A&gt;', 'Trail_System'&lt;/P&gt;&lt;P&gt;and others with no luck. What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 20:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1604384#M62087</guid>
      <dc:creator>MaxMolello</dc:creator>
      <dc:date>2025-04-09T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get the Search() function to work with a feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1604431#M62089</link>
      <description>&lt;P&gt;The problem is your choices aren't pointing to a field in the feature service to populate the choice list.&amp;nbsp; Your URL is correct, but it can't find anything because there are no fields named trail_system_search or trail_names.&amp;nbsp; In the choices tab of the xlsform change the name and label columns (leave the list_name column alone) of both lists to Trail_Name to match the Trail_Name field in the feature service and then it works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 22:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1604431#M62089</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-04-09T22:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get the Search() function to work with a feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1605029#M62107</link>
      <description>&lt;P&gt;That did it, I knew something didn't seem right. Do you know if there is a way to filter out null values in that field the search uses? I got a filter to work for a test value but can't find a way to exclude nulls from the list search creates in the drop-down question.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 01:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1605029#M62107</guid>
      <dc:creator>MaxMolello</dc:creator>
      <dc:date>2025-04-11T01:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get the Search() function to work with a feature service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1605162#M62109</link>
      <description>&lt;P&gt;I tried using the not() formula in the searchText and it gave me some strange results when trying to see if not('null'), or some variation thereof, would work.&amp;nbsp; You might try naming the unnamed trails to something like "unnamed" and testing if the following would work.&lt;/P&gt;&lt;P&gt;autocomplete search('trailname?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5&lt;/A&gt;', 'contains', 'Trail_Name', not('unnamed'))&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, the way I'd go about it is to add a new field like "named_trail" and have it be yes or no. Then set up the search() appearance with a filter on it, which would look like&lt;/P&gt;&lt;P&gt;autocomplete search('trailname?url=&lt;A href="https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5" target="_blank"&gt;https://services3.arcgis.com/AIhXi099WVQHFHhq/ArcGIS/rest/services/Trails_Public_View/FeatureServer/5&lt;/A&gt;', '', '', '', 'named_trail', 'yes')&lt;/P&gt;&lt;P&gt;It is searching for all the Trail_Name values and then filtering the results where the named_trail field is yes which should get rid of the blanks on the select_multiple.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 14:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/trying-to-get-the-search-function-to-work-with-a/m-p/1605162#M62109</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-04-11T14:05:00Z</dc:date>
    </item>
  </channel>
</rss>

