search() appearance functionality using feature service, searches on end of string instead of front.

3486
10
Jump to solution
02-07-2022 06:10 PM
AbeCoughlin
Occasional Contributor III

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.

The data is address data. So typing '201' for '201 N Broadway' should show all suggestions beginning with  201, BUT, it pulls in addresses like 1 Holland Gln, Unit 201.

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).

Assistance please. thanks.

10 Replies
AbeCoughlin
Occasional Contributor III

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!).

0 Kudos