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

FieldUpdateOptions.md

74 lines1.3 KB

1---
2id: FieldUpdateOptions
3title: FieldUpdateOptions
4---
5​
6Defined in: [types.public.ts:6](https://github.com/TanStack/form/blob/main/packages/form-core/src/types.public.ts#L6)
7​
8## Properties
9​
10### causeValidation?
11​
12```ts
13optional causeValidation?: boolean;
14```
15​
16Defined in: [types.public.ts:30](https://github.com/TanStack/form/blob/main/packages/form-core/src/types.public.ts#L30)
17​
18Whether to cause a validation run from the update.
19​
20#### Default
21​
22```ts
23true
24```
25​
26***
27​
28### markAsBlurred?
29​
30```ts
31optional markAsBlurred?: boolean;
32```
33​
34Defined in: [types.public.ts:24](https://github.com/TanStack/form/blob/main/packages/form-core/src/types.public.ts#L24)
35​
36Whether to mark the field as blurred from the update.
37​
38@default: Only true if the emitted event is a blur
39​
40***
41​
42### markAsDirty?
43​
44```ts
45optional markAsDirty?: boolean;
46```
47​
48Defined in: [types.public.ts:18](https://github.com/TanStack/form/blob/main/packages/form-core/src/types.public.ts#L18)
49​
50Whether to mark the field as dirty from the update.
51​
52#### Default
53​
54```ts
55true
56```
57​
58***
59​
60### markAsTouched?
61​
62```ts
63optional markAsTouched?: boolean;
64```
65​
66Defined in: [types.public.ts:12](https://github.com/TanStack/form/blob/main/packages/form-core/src/types.public.ts#L12)
67​
68Whether to mark the field as touched from the update.
69​
70#### Default
71​
72```ts
73true
74```