Hide List but Keep Search Function

I am using the collection component which is displaying a list. I want to keep the search function but hide the list. Is this possible?

If the list is hidden, what purpose would the search serve?

Or would you expect matches to appear as you start typing?
If that’s what you are looking for, you would need to create your own custom search.

2 Likes

One option is to only show 1 item in the list… see the settings for your list component. In this way you will retain the search function. Consider adding a filter option to your list too, which can be useful if your items are in categories

I was thinking if I hide the list it would make it difficult for someone to hijack the list and and create their own app. I was hoping as the person typed in the search the info would appear

Well, if somebody is determined to “steal” the data, hiding the list certainly won’t stop them. The data is already downloaded to their device, so all they need to do is poke around a bit with some inspection tools and they’ll have it.

That said, as I mentioned earlier it is possible to get the behaviour that you want by creating your own custom filter. There are plenty of tutorials around that show you how to do this. @Robert_Petitto has at least one, as does @Darren_Alderman (the other one, not me).

1 Like