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
extended-salmon•4mo ago
are you looking for
form.options.defaultValues
?
you can also use field.isDefaultValue
genetic-orangeOP•4mo ago
ow!
nice!