Hi,
Is it possible to have a search and select/autocomplete that searches multiple collections?
Hi,
Is it possible to have a search and select/autocomplete that searches multiple collections?
Hey!
Sure it’s possible! Do you mean a search that shows a dropdown of search suggestions when you start typing?
If you have a specific property you want to search by from the collections, you can create a new page variable list that gathers all possible search options and use that as the suggestion list. You can use formula functions MAP
to get the property you want to search by from each collection, and CONCAT
to combine them into one list.
Then as you’re typing, you can search the type value from the list of suggestions. A good example on how to implement a searchable list is shown in the docs.