Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

formNoValidate attribute | formNoValidate property

Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"–type submit option.

This property is read/write.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.19.6Internet Explorer 10

 

Syntax

HTML
<element formNoValidate="ptr" ... >

 

JavaScript
object.formNoValidate = ptr
ptr = object.formNoValidate

 

Property values

Type: DOMString

When present, this attribute lets a form be submitted without being validated.

Standards information

Remarks

This attribute can be set on button and input elements. It is a Boolean attribute, and needs to be specified only on an element.

The following example shows a field with two buttons, check and save and just save.

Note  For more code samples, see Form controls part 1 and Form controls part 2: validation on the Windows Internet Explorer sample site.

Examples


<form>
<p><label>*Name: <input type="text" required /></label></p>
<p><label>*Street: <input type="text" required /></label></p>
<p><label>*Zip: <input type="text" pattern= "[0-9](5|10)" placeholder="5 or 9 digit zip" title="5 or 9 digit zip" required /></label></p>
<input type="submit" name=submit value="submit" />
<input type="submit" formnovalidate name="save" value="just save" />
<p>* Required field</p>
</form>


See also

HTMLButtonElement
HTMLInputElement

 

 

Show:
© 2015 Microsoft