Description #
This filter returns response data for the form inputs. Using this filter you can change the format.
apply_filters('fluentform/response_render_' . $field['element'], $response->{$field_key}, $field, $formId, $isHtml);
Usage #
add_filter('fluentform/response_render_textarea', function ($value, $field, $formId, $isHtml) {
if (!$isHtml || !$value) {
return $value;
}
return '<span style="white-space: pre-line">' . $value . '</span>';
}, 10, 4);
Parameters #
- $value (array) Value
- $field (array) Field Data
- $formId (int) Form ID
- $isHtml (boolean) Is Html
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm/app/Hooks/filters.php