Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

FormGroupValidator.md

144 lines3.1 KB

Defined in: validation.public.ts:491

Extends

Type Parameters

TGroupValue

TGroupValue

Properties

bailIfInvalid?

optional bailIfInvalid?: boolean;

Defined in: validation.public.ts:21

If true, this validator and all subsequent validators will be skipped if any previous validator has failed. If false, validators run regardless of earlier validation results.

Default

false

Inherited from

Validator.bailIfInvalid


run

run: 
  | FormGroupValidatorFn<TGroupValue>
| StandardSchemaV1<TGroupValue, any>;

Defined in: validation.public.ts:14

Inherited from

Validator.run


runOnMount?

optional runOnMount?: boolean;

Defined in: validation.public.ts:45

Whether this validator should be called once when the form is constructed.

Default

false

Inherited from

Validator.runOnMount


runOnSubmit?

optional runOnSubmit?: 
  | boolean
| ValidationPredicateFn<TGroupValue, TGroupValue, "group">;

Defined in: validation.public.ts:38

TODO docs

Whether this validator should be called during a submission attempt.

Default

true

Inherited from

Validator.runOnSubmit


triggerDebounceMs?

optional triggerDebounceMs?: 
  | number
| ValidationDebounceFn<TGroupValue, TGroupValue, "group">;

Defined in: validation.public.ts:52

The debounce time in milliseconds for validation triggers (change, blur). Does not affect submit events, which always execute immediately.

Default

0

Inherited from

Validator.triggerDebounceMs


triggers

triggers: ValidationTriggerOption<TGroupValue, TGroupValue, ConfigurableValidationTrigger, "group">[];

Defined in: validation.public.ts:54

Inherited from

Validator.triggers