How to record country of residence

Hello all,

What’s the most efficient/easiest to implement/most reliable method of recording a user’s country of residence upon sign up?

Ideally, I would like the tag to be accompanied by a flag when listing the user’s profile.

Is there a solution already available for this within bubble or a working plug in?

Many thanks

Create an option set for each country with an emoji on each country (or import one using Bubble option set helper) and save it to the user after they select it using a dropdown.

Thanks for the response George.

I was hoping there might be a ready built solution as there’s 195 countries although I could streamline it a bit I suppose.

I would probably do some research into a CSV file you can download from the web with country names and their associated flags.

Then, create a data type that reflects the CSV columns and upload it. Then, you can have a dropdown, search bar, etc., that your users can use to search for their home country and link their selection to the user.

That’s kind of what I’m looking for, thanks.

I was looking at IP Geolocation which I think is a bubble plug in I downloaded ages ago but haven’t got a clue what it does. I’m managed to link it to Country type in the user profile, but I have absolutely no idea what it does!

So I think I’ll have to go with your solution mac unless I find an automated way to identify their country.

many thanks

There are dozens of free CSV files containing a list of every country. Use the option sets helper extension (chrome store) like I told you and it’ll work. It’s a couple of clicks to import every country. Heck, ChatGPT will create the CSV for you.

1 Like

Good thinking Batman!

I haven’t used ChatGPT for much but guess it has it’s uses.

Below is a list of countries and their associated emoji flags in a text-based format that could be copied into a CSV file. Please note that my list might not be fully up-to-date or exhaustive, and the recognition of certain countries may be subject to political debate.

To make a CSV file, copy the list into a text editor, save it with a .csv extension, and then you can open it with a spreadsheet program like Microsoft Excel or Google Sheets.

Country,Flag
Afghanistan,🇦🇫
Albania,🇦🇱
Algeria,🇩🇿
Andorra,🇦🇩
Angola,🇦🇴
Antigua and Barbuda,🇦🇬
Argentina,🇦🇷
Armenia,🇦🇲
Australia,🇦🇺
Austria,🇦🇹
Azerbaijan,🇦🇿
Bahamas,🇧🇸
Bahrain,🇧🇭
Bangladesh,🇧🇩
Barbados,🇧🇧
Belarus,🇧🇾
Belgium,🇧🇪
Belize,🇧🇿
Benin,🇧🇯
Bhutan,🇧🇹
Bolivia,🇧🇴
Bosnia and Herzegovina,🇧🇦
Botswana,🇧🇼
Brazil,🇧🇷
Brunei,🇧🇳
Bulgaria,🇧🇬
Burkina Faso,🇧🇫
Burundi,🇧🇮
Cabo Verde,🇨🇻
Cambodia,🇰🇭
Cameroon,🇨🇲
Canada,🇨🇦
Central African Republic,🇨🇫
Chad,🇹🇩
Chile,🇨🇱
China,🇨🇳
Colombia,🇨🇴
Comoros,🇰🇲
Congo (Congo-Brazzaville),🇨🇬
Costa Rica,🇨🇷
Croatia,🇭🇷
Cuba,🇨🇺
Cyprus,🇨🇾
Czech Republic (Czechia),🇨🇿
Denmark,🇩🇰
Djibouti,🇩🇯
Dominica,🇩🇲
Dominican Republic,🇩🇴
Ecuador,🇪🇨
Egypt,🇪🇬
El Salvador,🇸🇻
Equatorial Guinea,🇬🇶
Eritrea,🇪🇷
Estonia,🇪🇪
Eswatini,🇸🇿
Ethiopia,🇪🇹
Fiji,🇫🇯
Finland,🇫🇮
France,🇫🇷
Gabon,🇬🇦
Gambia,🇬🇲
Georgia,🇬🇪
Germany,🇩🇪
Ghana,🇬🇭
Greece,🇬🇷
Grenada,🇬🇩
Guatemala,🇬🇹
Guinea,🇬🇳
Guinea-Bissau,🇬🇼
Guyana,🇬🇾
Haiti,🇭🇹
Honduras,🇭🇳
Hungary,🇭🇺
Iceland,🇮🇸
India,🇮🇳
Indonesia,🇮🇩
Iran,🇮🇷
Iraq,🇮🇶
Ireland,🇮🇪
Israel,🇮🇱
Italy,🇮🇹
Jamaica,🇯🇲
Japan,🇯🇵
Jordan,🇯🇴
Kazakhstan,🇰🇿
Kenya,🇰🇪
Kiribati,🇰🇮
Kuwait,🇰🇼
Kyrgyzstan,🇰🇬
Laos,🇱🇦
Latvia,🇱🇻
Lebanon,🇱🇧
Lesotho,🇱🇸
Liberia,🇱🇷
Libya,🇱🇾
Liechtenstein,🇱🇮
Lithuania,🇱🇹
Luxembourg,🇱🇺
Madagascar,🇲🇬
Malawi,🇲🇼
Malaysia,🇲🇾
Maldives,🇲🇻
Mali,🇲🇱
Malta,🇲🇹
Marshall Islands,🇲🇭
Mauritania,🇲🇷
Mauritius,🇲🇺
Mexico,🇲🇽
Micronesia,🇫🇲
Moldova,🇲🇩
Monaco,🇲🇨
Mongolia,🇲🇳
Montenegro,🇲🇪
Morocco,🇲🇦
Mozambique,🇲🇿
Myanmar (Burma),🇲🇲
Namibia,🇳🇦
Nauru,🇳🇷
Nepal,🇳🇵
Netherlands,🇳🇱
New Zealand,🇳🇿
Nicaragua,🇳🇮
Niger,🇳🇪
Nigeria,🇳🇬
North Korea,🇰🇵
North Macedonia,🇲🇰
Norway,🇳🇴
Oman,🇴🇲
Pakistan,🇵🇰
Palau,🇵🇼
Palestine,🇵🇸
Panama,🇵🇦
Papua New Guinea,🇵🇬
Paraguay,🇵🇾
Peru,🇵🇪
Philippines,🇵🇭
Poland,🇵🇱

Thank you, ChatGPT! Good call @georgecollier

2 Likes