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 raw HTML, PHP in phtml, and PHP in class files (i.e. – if you don’t want to track down and change ever class="require-entry"
to required=required
)