CrossFieldValidatorEntry
| Extends: | |
Cross-field validator entry. Represents a validator that references formValue.* and needs form-level execution.
Supports two types of validators:
- Custom validators with cross-field expressions (e.g.,
formValue.password === formValue.confirmPassword) - Built-in validators with cross-field
whenconditions (e.g.,requiredwhencountry === 'USA')
Properties
| Name | Type | Description |
|---|---|---|
| category overrides | "validator" | The category of this cross-field entry |
| config | | The validator configuration. For custom validators, this contains the expression. For built-in validators, this contains the type, value, and when condition. |
| dependsOn inherited from | string[] | Field keys that this configuration depends on (extracted from expressions) |
| sourceFieldKey inherited from | string | The key of the field where this configuration was originally defined |
| validatorType | "email" | "customAsync" | "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "customHttp" | "custom" | undefined | For built-in validators with dynamic expressions, this contains the validator type (min, max, pattern, etc.) |