Open History to see the last commit
1---
2id: ErrorVisibilityContext
3title: ErrorVisibilityContext
4---
5β
6Defined in: [validation.public.ts:315](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L315)
7β
8Form and field state used to decide whether to show a field's errors.
9β
10## Type Parameters
11β
12### TFormData
13β
14`TFormData`
15β
16Library-managed. Do not specify explicitly.
17β
18### TFormErrorTypes
19β
20`TFormErrorTypes` *extends* [`FormErrorTypes`](FormErrorTypes.md)
21β
22Library-managed. Do not specify explicitly.
23β
24## Properties
25β
26### fieldState
27β
28```ts
29fieldState: ErrorVisibilityFieldState;
30```
31β
32Defined in: [validation.public.ts:325](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L325)
33β
34The field whose errors the policy controls.
35β
36***
37β
38### state
39β
40```ts
41state: FormState<TFormData, TFormErrorTypes>;
42```
43β
44Defined in: [validation.public.ts:323](https://github.com/TanStack/form/blob/main/packages/form-core/src/validation.public.ts#L323)
45β
46Current form state. For a field in a form group, flags and submission
47counters describe that group. `values` and `errors` describe the whole form.