---
title: fluentform/inserted_new_form
description: "## Description This action fires after the new form is created. If you want to do a certain task after a form creation then you can catch this action hook and do your staff. ```php /* * Source Action */…"
url: "https://fluentforms.com/docs/fluentform_inserted_new_form/"
updated: "2025-01-10"
category: Action Hooks
---

# fluentform/inserted_new_form

## Description

This action fires after the new form is created. If you want to do a certain task after a form creation then you can catch this action hook and do your staff.

```php
/*
* Source Action
*/
do_action('fluentform/inserted_new_form', $formId, $insertData);
```

## Usage

The following would apply to all forms:

```php
add_action('fluentform_inserted_new_form', 'your_custom_function', 10, 2);

function your_custom_function($formId, $insertData)
{
   // DO your stuffs here
}
```

## Parameters

- **$insertData** (array) Form Initial Array

- **$formId** int Form ID

## 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/FormService.php
