I have the search field where I want to search addresses, only in Japan. Does someone have idea how to realize this?
How to filter the search results by country?
@alexandru.wlnc
Welcome to the Bubble community!
There are a few ways to do this, but I a simple way would be the following:
1st When the input value is changed:
https://manual.bubble.io/core-resources/events/element-events#an-inputs-value-is-changed
2nd. In the event above, enter the following condition:
https://manual.bubble.io/core-resources/data/operations-and-comparisons#extract-1
PS - Extract the country from the input value and run this event only if the value is not Japan
3rd. Insert an action to reset input value:
https://manual.bubble.io/core-resources/actions/element#reset-relevant-inputs
You can also insert alerts after this action explaining to the end user that it is only available in Japan.
I hope this helps!
Hello, thanks for your response
Maybe my question wasn’t correctly formulated.
I need to filter hints list below search box
to show only results where country is Japan.
You can try this way then:
Prefers results around and radius (meters).
I hope this helps!
Thank you!
This helps
But this method works like sorting but not filtering, anyway that helps me
Thank you again !