Demo

Validation rules and events

Documented in Form.

Validation rules and events

Form validation with per-rule, validation.messages and localeText messages, native HTML constraints read as rules, rules swapped at runtime, error text from a function, onBeforeValidate and onValidate, and the native reportValidity and requestSubmit entry points.

Per-rule message for minLength; localeText for required
validation.messages overrides the maxLength text
Native required, pattern, minLength and maxLength; the error text comes from a function
Native type="url": type "example" and blur
Optional
No events yet.