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

# defaultOnSubmissionWarningsRequireConfirmation

## Overview

Default implementation for onSubmissionWarningsRequireConfirmation hook.

Renders the server warnings into the form (as messages) so they are visible behind the dialog,
then opens the confirmation controller and resolves to the user's choice. Returning `true`
triggers a single resubmission that acknowledges the warnings; `false` leaves the form unsaved
with the warnings still displayed.

## Signature

`defaultOnSubmissionWarningsRequireConfirmation(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-confirmation">confirmation</span> | `ConfirmationController` |  |  | The confirmation dialog controller. |
| <span id="param-options-error">error</span> | `ConfirmationRequiredError` |  |  | The 409 error. |
| <span id="param-options-formContext">formContext</span> | `FormContext` |  |  | The form context. |

### Returns

`Promise`

- True if the user confirmed and the save should be retried.

## Source

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