<?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: search() appearance functionality using feature service, searches on end of string instead of front. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1144190#M40555</link>
    <description>&lt;P&gt;In order to post a full solution, I summarize my findings here:&lt;/P&gt;&lt;P&gt;When using a feature service as the source of records in a 'search()' appearance option, the dataset is pulled into a JSON object that is then searched when the user opens the drop-down list or starts typing (if 'autocomplete' is included in the appearance column).&lt;/P&gt;&lt;P&gt;If the maxRecordCount on the map service is not large enough to allow all records to be ingested into the JSON object, the drop-down list will only show the maxRecordCount of records, thus not the full list of records. Similarly, if 'autocomplete' is included in the appearance column, the matching of the search term to the records will be limited to only the records that were brought across to the JSON object.&lt;/P&gt;&lt;P&gt;The searchType parameter does not work. Thus, the search term that you enter into the search field (if you have autocomplete included in the appearance column) will be matched to any text within the records, e.g. searching for '201', will return both '201 N Broadway' as well as '100 N Broadway, Unit 201'. However, the records will be returned in the order in which they are stored in the database table, i.e. if the records are stored alphabetically (as I have them) then '100 N Broadway, Unit 201' will be returned before '201 N Broadway' is.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 18:08:11 GMT</pubDate>
    <dc:creator>AbeCoughlin</dc:creator>
    <dc:date>2022-02-15T18:08:11Z</dc:date>
    <item>
      <title>search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1141461#M40367</link>
      <description>&lt;P&gt;Using the search() appearance functionality to fill a drop-down list from a feature service successfully loads data from the feature service (it shows correctly in an ordered manner)..., BUT, when typing in values, it is matching it to the end of the string, not the beginning.&lt;/P&gt;&lt;P&gt;The data is address data. So typing '201' for '201 N Broadway' should show all suggestions beginning with&amp;nbsp; 201, BUT, it pulls in addresses like 1 Holland Gln, Unit 201.&lt;/P&gt;&lt;P&gt;I have tried the 'startswith' parameter to no avail (do the 'startswith, endswith work with spatial tables - the documentation is written that it doesn't).&lt;/P&gt;&lt;P&gt;Assistance please. thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 02:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1141461#M40367</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-08T02:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1141745#M40389</link>
      <description>&lt;P&gt;Replying to my own text as even though I thought it made sense..., it didn't seem to read well this morning.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106155"&gt;@AbeCoughlin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Using the search() appearance functionality to fill a drop-down list from a feature service successfully loads data from the feature service (it shows correctly in an ordered manner)..., BUT, when typing in values, it is matching it to the end of the string, not the beginning.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This should be:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Using the search() functionality to fill a drop-down list with data from a feature service, I was able to see the data from the feature service in the drop-down choices. However, when typing in values to the text field, the suggestions being returned match the end of the string, not the beginning.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Try it out for yourself: &lt;A href="https://arcg.is/18XG8e" target="_blank"&gt;https://arcg.is/18XG8e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looking at the results, I see 512 items in the list. Is there some feature service limitation I'm not aware of? I'm sure that this is the issue considering the list starts off exactly like that of the CSV method. I've looked at the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/considerations-and-limitations.htm" target="_self"&gt;documentation&lt;/A&gt; for the AGOL API but don't see any such limit, and the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/search.htm" target="_self"&gt;documentation&lt;/A&gt; for the AGOL Search doesn't have any matching parameters with such limitations. Same goes for the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm" target="_self"&gt;documentation&lt;/A&gt; for AGOL Query.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1141745#M40389</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-08T18:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1142482#M40444</link>
      <description>&lt;P&gt;Here I go replying to myself again..., I guess that's pretty much normal!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AbeCoughlin_0-1644453902944.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33565i3C8F91DACE3E535C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AbeCoughlin_0-1644453902944.gif" alt="AbeCoughlin_0-1644453902944.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I thought I'd tweak the example survey I had above so it would now include the new Address type question with the 'geocode' appearance option. It works..., pretty nicely, maybe a tad slower than the CSV and FS?&lt;/P&gt;&lt;P&gt;Try it out for yourself: &lt;A href="https://arcg.is/18XG8e" target="_blank" rel="nofollow noopener noreferrer"&gt;https://arcg.is/18XG8e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached the XLSForm for review.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 00:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1142482#M40444</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-10T00:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1142908#M40480</link>
      <description>&lt;P&gt;A solution to the limited number of results returned: the maxRecordCount parameter for the service has to be increased. To do so, follow the instructions in this &lt;A title="How to increase the number of features returned by an ArcGIS Online feature service" href="https://gis.stackexchange.com/questions/179017/how-to-increase-the-number-of-features-returned-by-an-arcgis-online-feature-serv" target="_self"&gt;post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The maxRecordCount parameter was determined to be the issue by using the web browser developer tools to see what data was being loaded. The feature service approach loads all records in the feature service (up to the maxRecordCount limit) into a json object WHEN the page is loaded. This means that the search() functionality via the Feature Service is not a live query and thus if all records are NOT loaded into the json object when the survey page is loaded then the value being searched for may not be included into the search results.&lt;/P&gt;&lt;P&gt;The outcome of this is a increased lag time for the search tool. It is not as responsive as searching on the CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm still working on having the search() functionality to match the search term with the beginning of the data values, e.g. 201, should bring up addresses beginning with 201, and not ending in 201.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 23:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1142908#M40480</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-10T23:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1144183#M40553</link>
      <description>&lt;P&gt;In regards to the search() functionality being able to match the search term to the beginning of the data values, I've been advised through my reps (who spoke with the Survey 123 team/develoopers) that the 'startswith' capability is NOT functional currently. It seems that this is the case not only for the feature service approach but also the CSV approach. Issue resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 17:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1144183#M40553</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-15T17:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1144190#M40555</link>
      <description>&lt;P&gt;In order to post a full solution, I summarize my findings here:&lt;/P&gt;&lt;P&gt;When using a feature service as the source of records in a 'search()' appearance option, the dataset is pulled into a JSON object that is then searched when the user opens the drop-down list or starts typing (if 'autocomplete' is included in the appearance column).&lt;/P&gt;&lt;P&gt;If the maxRecordCount on the map service is not large enough to allow all records to be ingested into the JSON object, the drop-down list will only show the maxRecordCount of records, thus not the full list of records. Similarly, if 'autocomplete' is included in the appearance column, the matching of the search term to the records will be limited to only the records that were brought across to the JSON object.&lt;/P&gt;&lt;P&gt;The searchType parameter does not work. Thus, the search term that you enter into the search field (if you have autocomplete included in the appearance column) will be matched to any text within the records, e.g. searching for '201', will return both '201 N Broadway' as well as '100 N Broadway, Unit 201'. However, the records will be returned in the order in which they are stored in the database table, i.e. if the records are stored alphabetically (as I have them) then '100 N Broadway, Unit 201' will be returned before '201 N Broadway' is.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1144190#M40555</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-02-15T18:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1215668#M44968</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106155"&gt;@AbeCoughlin&lt;/a&gt;&amp;nbsp; this example was handy for helping me realise how to set an 'appearance' on a search against a FS.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 18:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1215668#M44968</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2022-09-23T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1215672#M44969</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106155"&gt;@AbeCoughlin&lt;/a&gt;&amp;nbsp;have any thoughts on how to filter the search results? I can't figure out how to implement a cascading selecting against search results to narrow down the list....&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 18:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1215672#M44969</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2022-09-23T18:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1217027#M45036</link>
      <description>&lt;P&gt;Unfortunately no directly from the Feature Service. Until ESRI improves/fixes the additional parameters to allow improved searching via a web feature service. The only work-around I would consider is to set the filter on the URL and use separate URLs for each (untested).&lt;/P&gt;&lt;P&gt;And, as I'm writing this, I'm recollecting that all the data gets copied to a local json object, and if that is the case, possibly you can create a new row in the Connect spreadsheet that can be used to filter the data that is in that downloaded json object. Just an idea.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1217027#M45036</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-09-28T17:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1217036#M45037</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106155"&gt;@AbeCoughlin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;...all the data gets copied to a local json object, and if that is the case, possibly you can create a new row in the Connect spreadsheet that can be used to filter the data that is in that downloaded json object. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't filter on the URL directly, as that's set in the choices tab of the survey. But I am interested in what you say here. But I have no clue how to even begin to do what you mention. Is there an example anywhere that you,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;or&amp;nbsp;@Anonymous User&amp;nbsp; can point me towards?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 18:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1217036#M45037</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2022-09-28T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: search() appearance functionality using feature service, searches on end of string instead of front.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1218344#M45131</link>
      <description>&lt;P&gt;Sorry, no, and I don't have the time currently to explore further. There may also be the option to write a javascript function to do this..., but again sorry, no time for me to explore this (although I'd be keen!).&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-appearance-functionality-using-feature/m-p/1218344#M45131</guid>
      <dc:creator>AbeCoughlin</dc:creator>
      <dc:date>2022-10-03T17:16:31Z</dc:date>
    </item>
  </channel>
</rss>

