Open History to see the last commit
1---
2id: ValidationTriggerConfig
3title: ValidationTriggerConfig
4---
5β
6Defined in: [validation.public.ts:506](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L506)
7β
8A change or blur event with an optional condition for running validation.
9β
10## Type Parameters
11β
12### TFormData
13β
14`TFormData`
15β
16Library-managed. Do not specify explicitly.
17β
18### TValue
19β
20`TValue`
21β
22Library-managed. Do not specify explicitly.
23β
24### TTrigger
25β
26`TTrigger` *extends* [`ValidatorTrigger`](../type-aliases/ValidatorTrigger.md) = [`ValidatorTrigger`](../type-aliases/ValidatorTrigger.md)
27β
28Library-managed. Do not specify explicitly.
29β
30### TScope
31β
32`TScope` *extends* [`ValidatorScope`](../type-aliases/ValidatorScope.md) = [`ValidatorScope`](../type-aliases/ValidatorScope.md)
33β
34Library-managed. Do not specify explicitly.
35β
36## Properties
37β
38### trigger
39β
40```ts
41trigger: TTrigger;
42```
43β
44Defined in: [validation.public.ts:513](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L513)
45β
46The event to match before evaluating `when`.
47β
48***
49β
50### when?
51β
52```ts
53optional when?:
54 | boolean
55| ValidationPredicateFn<TFormData, TValue, TScope>;
56```
57β
58Defined in: [validation.public.ts:522](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L522)
59β
60Whether this trigger enables validation when its event occurs.
61β
62Pass a boolean to enable or disable it, or pass a function that returns
63`true` to enable it for the current event.
64β
65#### Default
66β
67```ts
68true
69```