Categories


Recent Posts


Archives


Magento 2 – Form Validation

Visit Linked Page

Magento 2 – Form Validation A StackExchange post that contains most (all?) of the CSS classes that can control Magento 2’s form validation. Magento seems to apply the validation rules on all form submits – although I haven’t dug too deeply into that one so caveat emptor etc. Also, a bonus for folks who read these Tumblr desciptions — here’s a quick bit of javascript that will take M1 style HTML and make all the fields required in an M2 context. require(['jquery'], function($){ $('.required-entry').each(function(key, element){ $(element).attr('required','required'); }); }); Useful if you have a complex form built with a combination of […]

astorm

Express and NPM for PHP Developers

This entry is part 2 of 4 in the series Modern Javascript for PHP Developers. Earlier posts include Modern Javascript for PHP Developers. Later posts include Client Side Javascript, Modules, and Webpack, and Build Watchers, and NPM as a Build Tool. Last time we investigated the basic execution flow of a server side NodeJS program. Our [...]

astorm

Modern Javascript for PHP Developers

This entry is part 1 of 4 in the series Modern Javascript for PHP Developers. Later posts include Express and NPM for PHP Developers, Client Side Javascript, Modules, and Webpack, and Build Watchers, and NPM as a Build Tool. It’s getting harder and harder to ignore the modern javascript world. Even if you plan on staying safely [...]

astorm