---
title: fluentform/rendering_calculation_form
description: "## Description This action runs if the form input has a calculation in it and during rendering the input. If you need to do anything in the background you can use this action. ```php /* * Source Action */ do_action('fluentform/rendering_calculation_form',…"
url: "https://fluentforms.com/docs/ff_rendering_calculation_form/"
updated: "2023-07-25"
category: Action Hooks
---

# fluentform/rendering_calculation_form

## Description

This action runs if the form input has a calculation in it and during rendering the input. If you need to do anything in the background you can use this action.

```php
/*
* Source Action
*/
do_action('fluentform/rendering_calculation_form', $form, $data);
```

## Usage

```php
add_action('fluentform/rendering_calculation_form', 'custom_function', 10, 2);

function custom_function($form, $data)
{
   // Do your stuff here
}
```

## Parameters

- **$data **(array) Input Element
- **$form**(object) Form Object

## Source Code

This hook is located in fluentform/app/Modules/Component/Component.php
