---
url: "https://vueda.dev/v3/reference/api/js/use/useObjectForm/functions/defaultOnSubmissionError.md"
title: "defaultOnSubmissionError"
---

# defaultOnSubmissionError

## Overview

Default implementation for onSubmissionError hook.

## Signature

`defaultOnSubmissionError(options)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-options">options</span> | `object` | yes |  |

#### options Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-options-error">error</span> | `Error` |  |  | The error that occurred. |
| <span id="param-options-formContext">formContext</span> | `FormContext` |  |  | The form context. |
| <span id="param-options-state">state</span> | `object` |  |  | The form state. |
| <span id="param-options-toast">toast</span> | `(message: titleT, data: ExternalToast) => string \| number & object & object` |  |  | The toast service. |

### Returns

`Promise`

- True if the error is a recognized, ingestible form error and has been
 handled (rendered into field/toast feedback). False if it should instead surface as the form's
 visible save-failure error (e.g. a permission refusal, server failure, or network failure).

## Source

`client/lib/use/useObjectForm.js:167`
