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

# defaultOnSubmitAnyError

## Overview

Default implementation for onSubmitAnyError hook.

## Signature

`defaultOnSubmitAnyError(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-formContext">formContext</span> | `FormContext` |  |  |  |
| <span id="param-options-toast">toast</span> | `(message: titleT, data: ExternalToast) => string \| number & object & object` |  |  |  |

### Returns

`Promise`

True if the submission should be stopped.

## Source

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