HTML <button> formnovalidate Attribute

The formnovalidate attribute on a submit <button> tag specifies that no form validation occurs during form submission. The formnovalidate attribute requires that the <button> is of type submit.

Example

#

A formnovalidate attribute on the second submit <button> element.
The first button requires a valid email. The second button accepts anything.

<form action="/tutorial/action.html">
  <input type="email" name="email" placeholder="Enter your email" required>

  <button type="submit">Submit with validation</button>
  <button type="submit" formnovalidate>Submit with no validation</button>
</form>

Using formnovalidate

The formnovalidate attribute specifies that no form validation takes place during form submission.

This attribute overrides any of the input element's validation requirements.

Note: The formnovalidate attribute only works for submit type buttons.


Syntax

<button type="submit" formnovalidate>

Browser support

Here is when formnovalidate support started for each browser:

Chrome
6.0 Sep 2010
Firefox
4.0 Mar 2011
IE/Edge
11.0 Oct 2013
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <button>
Guides