Excluded Plugin
Skips validation for fields that are disabled, hidden, or match a custom exclusion function.
Options
| Option | Type | Default | Description |
|---|---|---|---|
excluded | string | ((field: string, element: HTMLElement) => boolean) | built-in rules | Custom exclusion rule. A CSS selector string or a function returning true to exclude the field. |
Playground
Notes
- By default, always excludes elements that have the
disabledattribute ortype="hidden". - The custom
excludedfunction is evaluated after the built-in disabled/hidden check. If the built-in check already excludes the field, the custom function is not called. - Compatible with
Sequence— excluded fields do not count as failures.