Links

State Options

The State Options configurations provide an ability for the admin user to configure if the state value is required for specific countries. For countries where the state is not required, the field can be omitted entirely from the address or included as an optional field.

Magento 2 state options configuration support:

SETTING
STATUS
DESCRIPTION
State is Required for
SUPPORTED
Determines each country where State/Province is a required entry.
Allow to Choose State if it is Optional for Country
SUPPORTED
The settings can be set to one of the following options:
  • Yes - In countries where the state field is not required, it includes the State field as an optional entry.
  • No - In countries where the state field is not required, it omits the State field.

Set up the state options

  1. 1.
    On the Admin sidebar, go to Stores > Settings > Configuration.
  2. 2.
    Under General in the left panel, choose General.
  3. 3.
    Expand
    the State Options section and set your preferences.
  4. 4.
    When complete, click Save Config.
  5. 5.
    Flush cache storage:
Caching Note
For the changes with State Options to appear on the front-end:
1.On the Admin sidebar, go to System > Tools > Cache Management
2. Choose Flush Cache Storage.