Our client wants us to make the state field as an optional one in the Checkout
. In order to do this, we have removed all the countries from the required state option and set to "Yes
" for allowing to choose the state and make it an optional one through State option in Magento admin panel.
Now, we can see that the state field showing in the checkout but not as a mandatory field as per our client requirement. Here, we have a doubt, our client using an API to fetch the school address into the checkout. There, we can see that in some of the schools, the state field is showing as not mandatory but also there are schools which are omitting the state field.
how the state options work in Magento 2?
Could anyone please help me with this?