<?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 Choice Lists Using Search Appearance Issue in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1254873#M47271</link>
    <description>&lt;P&gt;That did it, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 15:45:39 GMT</pubDate>
    <dc:creator>EthanLambert</dc:creator>
    <dc:date>2023-02-03T15:45:39Z</dc:date>
    <item>
      <title>Dynamic Choice Lists Using Search Appearance Issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1250230#M47011</link>
      <description>&lt;P data-unlink="true"&gt;I am trying to populate the choices for two fields in my survey based on a public feature layer in AGOL. I am using the 'autocomplete search()' function in the appearance column. The function returns a blank list instead of the expected values.&lt;/P&gt;&lt;P data-unlink="true"&gt;The public layer is a table of employee data. (&lt;A href="https://services1.arcgis.com/79kfd2K6fskCAkyg/arcgis/rest/services/Louisville_Metro_KY_Employee_Salary_Data/FeatureServer/0" target="_self"&gt;SalaryList&lt;/A&gt;) I want to use SalaryList first to fill the options for a couple of name fields on a project tracking form. I read this &lt;A title="Dynamic Choice Lists" href="https://community.esri.com/t5/arcgis-survey123-blog/dynamic-choice-lists-using-search-appearance/ba-p/1060838" target="_self"&gt;community post&lt;/A&gt;&amp;nbsp; that described the method. I downloaded the referenced sample survey in the Connect app. The sample works as described. However, the function fails when I use SalaryList information.&lt;/P&gt;&lt;P data-unlink="true"&gt;I tried just copying the sample query (see picture 1 below)&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Picture 1" style="width: 1302px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60936iD723B5A3E83E9202/image-dimensions/1302x44?v=v2" width="1302" height="44" role="button" title="community_post_pic_1.png" alt="Picture 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Picture 1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;into my form to see if the search function worked generally. I was able to populate my name field with the sample data. When I replaced the sample function parameters--the list became blank again.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I checked which version of Connect I was running, I have 3.16.111. I copied the field names and values directly from SalaryList to rule out typos, still blank.&amp;nbsp; I tried replacing different pieces of the function by creating variables instead. For instance, making a new line in the XLSForm to save the layer address as a note &amp;amp; then referencing that note in the search function. None of the variable replacements worked, I thought that my query exceeded the max record count allowed, so I added a filter column/text for the calendar year. Still nothing. I tried the year filter with and without a 'matches' function in front of it. I also tried another layer to see if SalaryList was the issue, the &lt;A href="https://gis.lojic.org/maps/rest/services/LojicSolutions/OpenDataPolitical/MapServer/8" target="_self"&gt;other layer&lt;/A&gt; did not work either. Additionally, I was able to use the other layer in a pulldata "@layer" function successfully, so my issue appears to be with the search function specifically.&lt;/P&gt;&lt;P data-unlink="true"&gt;See picture 2 below for the full text of the search function I am trying to figure out. I would appreciate any advice.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Picture 2" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60937i8B174D4BB1AFCA1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="community_post_pic_2.png" alt="Picture 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Picture 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;For further reference, I attached the full XLSForm as well.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 01:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1250230#M47011</guid>
      <dc:creator>EthanLambert</dc:creator>
      <dc:date>2023-01-22T01:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice Lists Using Search Appearance Issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1254707#M47266</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/470938"&gt;@EthanLambert&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the choices worksheet is looks like you may be using an incorrect field, the field NAME doesn't exist in the feature service schema. I had switched it to Employee_Name since that was in the schema.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the search() appearance syntax there are more arguments given then what the syntax supports. Here is the full syntax for the search() appearance:&amp;nbsp;&lt;EM&gt;search(‘tableName’, ‘searchType’, ‘searchColumn’, ‘searchText’, ‘filterColumn’, ‘filterText’)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Based on what was in cell F6 I had switched it to&amp;nbsp;&lt;EM&gt;autocomplete search('employee?url=&lt;A href="https://services1.arcgis.com/79kfd2K6fskCAkyg/arcgis/rest/services/Louisville_Metro_KY_Employee_Salary_Data/FeatureServer/0','matches','Department','Parks" target="_blank"&gt;https://services1.arcgis.com/79kfd2K6fskCAkyg/arcgis/rest/services/Louisville_Metro_KY_Employee_Salary_Data/FeatureServer/0','matches','Department','Parks&lt;/A&gt; &amp;amp; Recreation', 'CalYear','2022')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;That updated syntax had worked on my end, here is a copy of the same XLSForm with the changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 01:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1254707#M47266</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2023-02-03T01:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice Lists Using Search Appearance Issue</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1254873#M47271</link>
      <description>&lt;P&gt;That did it, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-choice-lists-using-search-appearance-issue/m-p/1254873#M47271</guid>
      <dc:creator>EthanLambert</dc:creator>
      <dc:date>2023-02-03T15:45:39Z</dc:date>
    </item>
  </channel>
</rss>

