Description #
This filter is available before rendering the form fields. You can use this filter to modify the form fields.
apply_filters('fluentform/rendering_field_html_'.$elementName, $html, $data, $form);
Usage #
The following would apply to all forms:
add_filter('fluentform/rendering_field_html_input_email', function($html, $data, $form){
return $html;
}, 10, 3);
Parameters #
- $html (string) HTML output of field
- $data (array) Form Field Element
- $form (object) The $form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\App\Services\FormBuilder\Components\Text -> compile($data, $form)