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

# use/useConfirmationController

## Overview

Factory for the reactive controller behind submit-time warning confirmation dialogs
(server confirm-then-save, HTTP 409). Shared by `useObjectForm` and `useActionForm`.

## Methods

- [useConfirmationController](/v3/reference/api/js/use/useConfirmationController/functions/useConfirmationController.md) - Creates a ConfirmationController.

## Types

### [ConfirmationController](/v3/reference/api/js/use/useConfirmationController/types/ConfirmationController.md)

### [FieldWarnings](/v3/reference/api/js/use/useConfirmationController/types/FieldWarnings.md)

Warnings keyed by field
 (`non_field_errors` for messages not tied to a field).

`FieldWarnings = object`

### [WarningsMapping](/v3/reference/api/js/use/useConfirmationController/types/WarningsMapping.md)

Either the
 flat `FieldWarnings` shape, or keyed by object id with each value a
 `FieldWarnings` mapping for that object.

`WarningsMapping = FieldWarnings | object`

## Source

`client/lib/use/useConfirmationController.js:1`
