Jump to content

Set Default Country for Calendar Events


KT Walrus

Recommended Posts

Posted

When I add a calendar event with a location, the country is not set by default (in my case, it should default to United States). The focus is automatically on the street address, and if I don't select the United States before entering the street address, I don't get Google Maps auto-complete for the address.

Seems to me that this behavior isn't as friendly as it could be, especially since for other forms, the address field sets the default country from the locale for the current user.

  • 3 months later...
Posted

+1 - should be able to default a country and even state and perhaps city.

also i can't find anywhere to disable the location field completely per calendar?

  • 2 years later...
Posted

The country should automatically be set to your country (i.e. if I visit from the US it should default to the US, if I visit from China it should default to China). 

Posted

It does not work for me. The country is not defaulted. And I mean the field is not filled with any country. I am in Germany using browser in English. What should be default in this case?

Posted
20 hours ago, Sonya* said:

It does not work for me. The country is not defaulted. And I mean the field is not filled with any country. I am in Germany using browser in English. What should be default in this case?

It depends on the Accept-Language header your browser sends, ultimately. If it sends "en-US" we can guess you are probably from the US for instance.

Posted
7 minutes ago, bfarber said:

It depends on the Accept-Language header your browser sends, ultimately. If it sends "en-US" we can guess you are probably from the US for instance.

The W3C checker says:

screenshot-validator_w3.org-2020_01.thumb.png.3d219f6048a894a44a435b4c8dcd2a48.png

The country is not defaulted. Checked with Chrome with German interface in Germany :huh:

Posted

I see the problem looking at your string there. I'll raise a bug report. Basically, your first option is just "de" and we're looking for "de-DE". Your other options have a quotient applied and we're not handling that in our basic sniffer.

In other words, it just comes down to the formatting of your Accept-Language header not being accounted for.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...