1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
require([ 'jquery', 'mage/validation' ], function($){ var dataForm = $('#form-validate'); var ignore = null; dataForm.mage('validation', { ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden' }).find('input:text').attr('autocomplete', 'off'); $('button#my-button').click( function() { //can be replaced with any event dataForm.validation('isValid'); //validates form and returns boolean }); }); |
#form-validate – Replace with your form id
#my-button – Replace with your button id
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-628471c2d9e81601389586/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...