Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
As I understand the Form class the only method available to set form attributes is setAttribute( String $name, String $value ).
But to set the novalidate attribute, there is only one parameter, novalidate.
How do I add the novalidate attribute to a form object?
$field->setAttribute('formnovalidate', 'true'); should work.