---
title: "fluentform/rendering_field_data_{INPUT_KEY}"
description: "## Description This filter is fired right before rendering an input field with the input data and settings. You can use this to alter to the output of the input of Fluent Forms input. ```php apply_filters('fluentform/rendering_field_data_{INPUT_KEY}', $data, $form); ``` ##…"
url: "https://fluentforms.com/docs/fluenform_rendering_field_data_input_key/"
updated: "2023-07-21"
category: Filter Hooks
tags:
  - Filter Hook
---

# fluentform/rendering_field_data_{INPUT_KEY}

## Description

This filter is fired right before rendering an input field with the input data and settings. You can use this to alter to the output of the input of Fluent Forms input.

```php
apply_filters('fluentform/rendering_field_data_{INPUT_KEY}',  $data, $form);
```

## Usage

In the example, we have used the key for input text which is '**input_text**'.

```php
add_filter('fluentform/rendering_field_data_input_text', 'your_custom_code_before_for_filtering', 10, 2);

function your_custom_code_before_for_filtering($data, $form)
{
   if($form->id != 5) {
      return;
   }

   // Do your stuffs here
   return $data;
}
```

## Parameters

- **$data** Array ( input field settings & attributes)
- **[$form](https://fluentforms.com/docs/form-object/)** 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 filter is located in every input component class. You can find the component from here: FluentForm\App\Services\FormBuilder\Components\Text -> compile($data, $form)
