Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 Explorer 10



<element formNoValidate="ptr" ... >


object.formNoValidate = ptr
ptr = object.formNoValidate


Property values

Type: DOMString

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

Standards information


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.


<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>

See also




© 2017 Microsoft