Hi there,
I'm currently working on a more complex autocomplete solution for a dropdown list.
It's described in several sources that by enabling the "custom text entry" of the dropdown list, open it up on enter and do some filtering on exit, you have a simple autocompletion. This filters the items in the list such that only the items starting like the typed text are shown.
In my case, I have an adressbook in the background and want the autocompletion to search in multiple fields. For example, having "John Doe" in the dropdown list, I want to match the filter not only on "Joh" (first letters of the display value) but also on "Doe" (first letters of the last name).
For that I created a change event script that takes the typed string and fill the dropdown with the matching items. So far it's working fine.
But sadly after my filter the build in filter seems to hook in and hides all items that are not starting with the custom text.
Is there a way to disable this behaviour?
I have tried several other solutions like put a text field in the foreground of the dropdown box and use this for text entry, but it moves to the background as soon as I focus on the dropdown, or using a text field and a floating list that is shown when needed but no scrollbars are shown unless you focus the list and then you can't type anymore, and so on.
I would be glad if you can help me or tell me an idea that could work!
Regards,
Philipp