This simple plugin replaces state/province input field with select box containing states for selected country
Fill in the configuration fields:
To add your own country → states mapping:
Add your rules as json structure. Use ISO country name as key, sample for Belgium (BE) below:
{ "BE":["Antwerpen","Limburg","Oost-Vlaanderen","Vlaams-Brabant","West-Vlaanderen","Waals-Brabant","Henegouwen","Luik","Luxemburg","Namen"] } |
Note: You can use existing rules as reference, available in file: includes/modules/Other/state_province_select/default.json
Once the module is activated, upon selecting one of the supported countries (as listed above), the dropdown menu will display the list of available states/provinces in the relevant section: