---
title: fluentform/before_submission_confirmation
description: "## Description This action fires after all the actions are completed regarding the form submission. After this hook the final form submission Ajax response completes. It's recommended to use this action to do your own integrations or response to your…"
url: "https://fluentforms.com/docs/fluentform_before_submission_confirmation/"
updated: "2024-11-14"
category: Action Hooks
tags:
  - Action Hook
  - Submission Hook
---

# fluentform/before_submission_confirmation

## Description

This action fires after all the actions are completed regarding the form submission. After this hook the final form submission Ajax response completes. It's recommended to use this action to do your own integrations or response to your own confirmation as an Ajax response.

```php
/*
* Source Action
*/
do_action('fluentform/before_submission_confirmation', $insertId, $this->formData, $this->form);
```

## Usage

The following would apply to all forms:

```php
add_action('fluentform/before_submission_confirmation', 'your_custom_confirmation_function', 20, 3);

function your_custom_confirmation_function($entryId, $formData, $form)
{
   // DO your stuffs here
}
```

The following would apply to a specific form id: 5:

```php
add_action('fluentform/before_submission_confirmation', 'your_custom_confirmation_function', 20, 3);

function your_custom_confirmation_function($entryId, $formData, $form)
{
     if ($form->id != 5) {
         return;
     }
     // DO your stuff here
}
```

## Parameters

- **$entryId **(integer) Entry ID of this response
- **$formData** (array) Entry Response as key-value pairs array as input name as array key
- **$form** (Object) [The $form Object](https://fluentforms.com/docs/form-object/)

## Placement

This code should be placed in the [functions.php](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

This action is located in fluentform/app/Services/Form/SubmissionHandlerService.php
