Filter Hook – [fluentform/rendering_field_html_{$elementName}] | WordPress.org

[ad_1]

Hi,

I would like to use the filter hook [fluentform/rendering_field_html_{$elementName}] to add a custom data attribute to specific input fields (e.g. name, email).

When using your example, I get an error / blank screen.
add_filter(‘fluentform/rendering_field_html_input_email’, function($html, $data, $form){ return $form; }, 10, 1);

How would you add data-form-detail=’xyz’ to an input field (type=email).

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer