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

# defaultOnSubmissionSuccess

## Overview

Default implementation for onSubmissionSuccess hook.

## Signature

`defaultOnSubmissionSuccess(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-isUpdate">isUpdate</span> | `boolean` |  |  | Whether it was a create or update submission. |
| <span id="param-options-router">router</span> | `Router` |  |  | The router. |
| <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`

## Source

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