Setting a default value for the PhoneFactor country drop-down in Azure AD B2C

Dropdown by Abdulloh Fauzan from the Noun Project

When you proof up, the default country in the phone country drop-down list is the USA.

You have to scroll down if you want another country.

If e.g. your customers are in Australia, it would be a much better experience if Australia was the default.

You can do this by re-ordering the list.

The code is:

And the gist is here.

I put this in an extension file on its own so it’s easy to add to all my proof-up journeys.

Also see this.

All good!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store