The Country field (billingAddressCountry) will always contain a valid country value, such as USA, Australia, or Canada. Based on the selected country, the State field (billingAddressState) should behave dynamically.
When the selected country has a predefined list of states or provinces, the State field should be displayed as a dropdown containing only the corresponding values for that country. This ensures users can select the appropriate state from the available options.
If the selected country does not have a predefined list of states, the State field should automatically remain as a normal text input, allowing users to enter the state or province manually.
This functionality should be applied consistently on both the Create and Edit Account screens, with the State field updating automatically whenever the Country field is selected or changed.
When the selected country has a predefined list of states or provinces, the State field should be displayed as a dropdown containing only the corresponding values for that country. This ensures users can select the appropriate state from the available options.
If the selected country does not have a predefined list of states, the State field should automatically remain as a normal text input, allowing users to enter the state or province manually.
This functionality should be applied consistently on both the Create and Edit Account screens, with the State field updating automatically whenever the Country field is selected or changed.
