Display " only country" on searchbox

Hello

Is it possible to display “only” the country in the searchbox?
or do you have another idea ?

Thank you :wink:
Mel

SCR-20240508-pjxp

If you dont need any gps coordinates or anything. You can simply have Country data type and add all countries through importing in the app data tab and show this in your dropdown.

I guess it can also be an optionset but you cant import 190 something options to it and you have to create manually.

@hergin Thank you !

So, if not possible to display only the country, or only the city and country in the searchbox?

In this case, if I create a “country” dropdown manually => write and modify in database.
Can I add a searchbox to enter an address without a country. (filter address without country) => write/modify in database?

Thank you

I think you cant force just city or country selection in the searchbox (address), at least not builtin.

If you will use a searchbox with address, it searches with country no matter what. If you want the address to be just text, they can enter anything. With or without country.

What is the actual use case you are trying to implement?

@hergin Thank you :+1:t3:, I understand better.
Is it possible to extract all the information from searchbox (address) separately in inputs (text or address)?
Ex: 80A via pozziano, 65300 Florence, Italy
input address => 80A via pozziano
input integer => postcode : 65300
input address => city: florence
input address => country: italy

This google search is free, or do I need to pay a service by google search?

It is possible to get the parts separately. You need to be careful while extracting though. Addresses are not that standard as you know. I dont know geo location type of bubble gives you that granulatity.

Also, yes. This google search related things cost money. That’s the part where you have to paste your maps Api key to bubble app so they continue working. Check the google maps bubble manual: Google Maps Integration | Bubble

1 Like

I have checked and you can extract things from a regular geographic address:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.