HTMLInputElement: formNoValidate property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
TheformNoValidate property of theHTMLInputElement interface is a boolean value indicating if the<form> will bypassconstraint validation when submitted via the<input>. It reflects the<input> element'sformnovalidate attribute.
This property is valid only forsubmit andimage<input> elements.
Its value overrides thenoValidate property of theHTMLFormElement interface if the form is submitted via the input. This property can be retrieved or set.
In this article
Value
A boolean.
Examples
js
const inputElement = document.getElementById("myInput");console.log(inputElement.formNoValidate);Specifications
| Specification |
|---|
| HTML> # dom-fs-formnovalidate> |
Browser compatibility
See also
HTMLInputElement.reportValidity()HTMLInputElement.checkValidity()HTMLInputElement.formActionHTMLInputElement.formEnctypeHTMLInputElement.formMethodHTMLInputElement.formTarget<input type="submit"><input type="image"><form>HTMLFormElement.noValidateHTMLButtonElement.formNoValidate- Learn: Client-side form validation
- Guide: Constraint validation