You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/useform/setvalues.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ This function allows you to dynamically set multiple field values at once and ha
18
18
|`value`<br/><TypeText>Partial\<TFieldValues\>\| (data: TFieldValues) => Partial\<TFieldValues\></TypeText> || An object containing the field values to update, or a callback function that receives the current form values and returns the updated values. This argument is required. |
19
19
|`options`|`shouldValidate`<br/><TypeText>boolean</TypeText> | <ul><li>Whether to compute if your input is valid or not (subscribed to <TypeText>errors</TypeText>).</li><li>Whether to compute if your entire form is valid or not (subscribed to <TypeText>isValid</TypeText>).</li></ul> |
20
20
||`shouldDirty`<br/><TypeText>boolean</TypeText> | <ul><li>Whether to compute if your input is dirty or not against your `defaultValues` (subscribed to <TypeText>dirtyFields</TypeText>).</li><li>Whether to compute if your entire form is dirty or not against your `defaultValues` (subscribed to <TypeText>isDirty</TypeText>).</li></ul> |
21
+
||`shouldTouch`<br/><TypeText>boolean</TypeText> | Whether to set the updated inputs to be touched. |
0 commit comments