How to call Magento Varien Form Validation on Button click instead of form submit

Here i am explaining How to call Magento Varien Form Validation on Button click instead of form submit,

Some time you need to create same form in two steps like Step 1 with some fields and Step 2 with some fields, I this case before going to Step 2 you need to validate Step 1 form fields.

Here i am explaining how it can be done.

You may be have JavaScript or JQuery to call or show the Step 2 fields by hiding Step 1 Fields just update your script with the following

The following two tabs change content below.

Arshad M

Magento Certified Developer at Codilar
Passionate full stack eCommerce web developer, Magento Certified Developer.

Latest posts by Arshad M (see all)

One thought on “How to call Magento Varien Form Validation on Button click instead of form submit

Leave a Reply

Your email address will not be published. Required fields are marked *