type ResetFieldFn<TFormData> = <TDeepKeys>(DeepKeys) => void;Defined in: FormApi/FormApiFieldMethods.types.public.ts:73
Restores a field path from defaultValues and resets state for its field subtree.
Existing FieldApi instances at or below the path remain mounted. Pending validation is canceled, field metadata is cleared, and reset listeners are notified. Form-wide dirty history remains unchanged; use formApi.reset() to clear it.
TFormData
Library-managed. Do not specify explicitly.
TDeepKeys extends DeepKeys<TFormData>
Library-managed. Do not specify explicitly.
TDeepKeys
The field path to reset.
void
formApi.setFieldValue('profile.name', 'Grace')
formApi.resetField('profile.name')
// `profile.name` is restored from `defaultValues`.