Web Analytics

Fill the form & Get Installation Support

How to Create Country & State Dropdown in Magento2 Frontend Custom Form?

First create a file “index.php” at app\code\local\Magemonkeys\Form\Block with below code.

Now, you need to create another file at app\code\local\Magemonkeys\Form\view\frontend\layout\ with following code and name it as “form_form_index.xml

Now create “index.phtml” with following code at app\code\local\Magemonkeys\Form\view\frontend\templates\form

Lastly, you need to create “Country.php” in your form folder at app\code\local\Magemonkeys\Form\Controller\Form\ with following code.


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

    Recent Articles

    Author Info

    Author Image

    Magento Certified Developer

    Hire J. Lakum

    Get a Free Quote

      /* second popup */

      Connect With Us