I’m building a library of case, users can add a photo with description and tags.
Other users can view and search cases that are already in the database. I would like to allow users to search within tags and description for keywords and find case interesting for them.
Adding photos works but I can’t figure out how to create a search.
What you are trying to do is a full text search on a type. We have that feature on the Repeating Group element. Of course, you want to define your type (Case Entry) first.
Here’s one way to do it
On a Repeating Group, pick “Do a search for…” in the Data Source field, and pick your type (let’s call it Case Entry), then pick “Any field contains” and use an input box as your dynamic data source.
Thanks for help.
This works fine if you stay on the same page. Do you know how I can pass the query entered in the search text box to the other page in my app? I tried to use “Get ? parameter from page url” but I couldn’t find any way to make Bubble put text entered by the user into the url parameter to pass it on.
@georgeciobanu this is is a very helpful answer. The only issue with this is that partial matches are not found - so ‘Smith’ returns a person, not ‘smi’.
Also, whilst if a standard input is used, automated search happens as you type without hitting return, but not if a search box is used. It makes sense to enable any field search to search boxes too- why was this not the case?
I created a step-by-step guide for building an autocomplete search function. The search focus group appears when there are autocomplete suggestions and hides when there is none.
The Bubble editor is also there in case you want to copy the workflows and elements to your app directly.