By default, country and state/province fields in Microsoft Dynamics CRM 2011 are plain textboxes.
I want them to be dropdowns instead, with the state dropdown being updated based on the selection in the country dropdown. However, I don’t want to have to come up with states and provinces for every country in the world so any unconfigured ones should just show the normal text box.
After trudging through many various solutions we didn’t find anything that worked the way we wanted so we created a new solution.
We created a countries_and_states.js script that will turn the Country field into a dropdown that drives the State/Province field as well. The State/Province field will be a dropdown for countries that have been configured (by default only USA and Canada, but it’s easy to add your own). If a country has not been configured, the State/Province field falls back to the default textbox.
More info on how to use it can be found on on this blog post.