# getDeepErrorEntries

> This document is the Markdown version of [formisch.dev/methods/api/getDeepErrorEntries/](https://formisch.dev/methods/api/getDeepErrorEntries/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

Retrieves the errors of a specific field or the entire form as a list of entries, each pairing the path to a field with its error messages. This is useful for building custom error summaries that link each message back to its field.

```ts
const entries = getDeepErrorEntries<TSchema>(form);
const entries = getDeepErrorEntries<TSchema, TFieldPath>(form, config);
```

## Generics

- `TSchema` `extends FormSchema`
- `TFieldPath` `extends RequiredPath | undefined = undefined`

## Parameters

- `form` `BaseFormStore<TSchema>`
- `config` `GetFormDeepErrorEntriesConfig | GetFieldDeepErrorEntriesConfig<TSchema, TFieldPath> | undefined`

### Explanation

The `form` parameter is the form store to retrieve error entries from. The optional `config` parameter scopes the collection to a specific field's subtree via a `path` (when omitted, the entire form is walked). Each returned entry contains the `path` to a field and its non-empty list of `errors`.

## Returns

- `result` `DeepErrorEntry<v.InferInput<TSchema>>[]`

## Related

### Primitives

[`useForm`](/react/api/useForm.md)

### Methods

[`getErrors`](/methods/api/getErrors.md), [`getDeepErrors`](/methods/api/getDeepErrors.md), [`getDeepErrorEntry`](/methods/api/getDeepErrorEntry.md), [`validate`](/methods/api/validate.md)
