Get Initial Values
Has any way I can get the initialValues of the form? Like, i have right know a array of items, and a function to remove, that removal trigger the "isDirty", but I need to know exacly the field removed, so I can removed afwards.
I know in some place this state exists, because is called when we use the reset() function.
2 Replies
broad-brown•7mo ago
are you looking for
form.options.defaultValues?
you can also use field.isDefaultValueharsh-harlequinOP•7mo ago
ow!
nice!