top | item 37567193

(no title)

melx | 2 years ago

Kudos on the nice UX for dropdown with countries. I wish more websites do it. Usually, it's "United States" at the very top, and 194 other countries in a loooooong list.

discuss

order

TheHappyOddish|2 years ago

Even better are the ones where you pick your country and the 'state' dropdown is still US states and 'Other', and you're prompted for a 'zip code'. What does American mail have to do with a zip anyway?

kelnos|2 years ago

Not sure if your question is flippant/rhetorical, but in case you're genuinely curious: ZIP stands for Zone Improvement Plan, the initiative that set up the "postal codes" that we call ZIP codes.

I don't quite recall, but I think ZIP may actually be a backronym; in US English, "zip" is a word that also means "to move quickly", and they wanted to evoke a feeling that postal mail gets delivered faster when you include the ZIP code, which makes sorting mail more efficient.

helboi4|2 years ago

Ooo yes there's nothing I hate more than an address form for a business that clearly works internationally being only really compatible with US addresses. My "state"? At least Germany or something has states the UK does not. My "city"? In the UK cities and towns are distinct and I am from a town. I have very occasionally actually then not been able to proceed because someone has not actually configured the "zip code" field to accept postal codes that include letters.

nicbou|2 years ago

I use navigator.languages to guess the user's possible countries. It's not perfect, but the cost of guessing wrong is low. I've used the same technique to show currency conversion tooltips in the content.

sagarm|2 years ago

You know you can type the first few letters of the entry you're looking for while the drop-down is open right?

gumballindie|2 years ago

Oddly enough it doesn't list countries where most people are likely to come from right at the top. That makes it ill designed still.

martin_a|2 years ago

I think this has been taken care of:

> I use navigator.languages to get a list of supported languages. For example, en-CA, fr-CA, de-DE. This gives me a list of countries the user might have lived in. I suggest those countries at the top of the country list.

melx|2 years ago

The OP wrote this is based on "navigator.languages" feature in the visitor's browser. So if your preferred language is set to e.g. French, then you shall see France at the top of dropdown.

lucb1e|2 years ago

That's... exactly what this is as well? Are you getting a different UI that I'm not?

mkreis|2 years ago

If you have different browser language settings, then yes, you are getting a different UI.