fluentform_response_render_{element}

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 app/Hooks/Common.php

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *