#11583 Add support for HTML5 "required" attribute in form input elements

This change ads a checkbox to set the required attribute on checkbox, radio, textfield, textarea and select elements in forms.