The formnovalidate Attribute

The Current State of HTML5 Forms

<form>
  <input type=number name=num min=1 max=10>
  <input type=submit formnovalidate value=Save>
  <input type=submit value=Submit>
</form>

Live Demo


 


Firefox
4+

Safari
7-

Safari
7-

Chrome
6+

Opera
10.6+

IE
10+

Android
4.2-

The Low Down

The Boolean formnovalidate attribute prevents a form from being validated, similar to the novalidate attribute of the <form> element, preventing the associated form from native client-side validation.

  • The Boolean formnovalidate attribute is applicable for <input> of type=submit and type=image or as an attribute of the <button> element.
  • The formnovalidate attribute could be used in a situation where a form needed to be “saved” but not “submitted”, when invalid data is OK for now. Example: Doing your taxes online, a number field could have the value “ask Diane in accounting about this” as a note-to-self.
  • Safari, Safari iOS and Anroid accept the attribute but it don’t actually work (because they don’t have form validation anyway).

Our Cookie Policy and Privacy Policy outline how we use cookies to help personalize content, tailor and measure our marketing, and improve your user experience. I agree to use of cookies for these purposes.