updated parseField workflow
This commit is contained in:
17
README.md
17
README.md
@ -1,10 +1,6 @@
|
||||
# Overview
|
||||
|
||||
This class easily adds front-end validation to HTML forms.
|
||||
|
||||
# Demo
|
||||
|
||||
A demo of the form validation class can be found [here](https://demos.danremollino.dev/form-validation/).
|
||||
A feature demo can be found [here](https://demos.danremollino.dev/form-validation/).
|
||||
|
||||
# Documentation
|
||||
|
||||
@ -20,10 +16,10 @@ instance.
|
||||
Once a field is marked invalid, it will always re-validate when its value is
|
||||
changed regardless of the [`onlyOnSubmit`](#onlyOnSubmit) value.
|
||||
|
||||
> `required` fields are tested for blank first. If this check is passed, the
|
||||
field will then test for [custom rules](#custom-validation) if present. If
|
||||
there are no custom rules, some fields are also tested further based on their
|
||||
`type` attribute value. These are described [below](#markup).
|
||||
> `required` fields are first tested for blank. If this check is passed, fields
|
||||
are then tested based on their `type` attribute value if applicable. (Described
|
||||
[below](#markup).) Lastly, the field will test for a user supplied
|
||||
[pattern](#pattern) if present.
|
||||
|
||||
## Required Fields
|
||||
|
||||
@ -450,9 +446,6 @@ copied and added to the field as a native [`pattern`](https://developer.mozilla.
|
||||
attribute. It is recommended to also provide an error message to display when
|
||||
the value does not match `pattern` by providing a [`patternMessage`](#patternmessage).
|
||||
|
||||
> The pattern is checked when input is present. A required field will always
|
||||
first test for blank, then for the provided pattern.
|
||||
|
||||
### patternMessage
|
||||
|
||||
**Default:** `null`
|
||||
|
Reference in New Issue
Block a user