Web Analytics

Fill the form & Get Installation Support

    Magento 2: How to add country and region dropdown in admin form?

    If you want to add country and region inside the drop-down in custom module admin form, you landed to right page.


    Follow below instruction step-by-step to execute it.

    Step 1 : Add column in table field.

    Create new file : Setup/Installschema.php

    Step 2 : Add country and state drop-down with text

    Create new file : Block/Adminhtml/Grid/Edit/Form.php

    Step 3 : Getting region list from controller.

    Create new file : Controller/Adminhtml/Lists/Regionlist.php

    Step 4 : Save your data.

    Create new file : Controller/Adminhtml/Grid/Save.php

    Well, that’s it. Try to adopt this solution and let us know how it worked for you.

    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Hire B. Darji

      Get a Free Quote

        Connect With Us