Conversational Form Hooks
Action Hooks 2 HooksThese hooks fire during conversational form rendering.
fluentform/conversational_enqueue_assets
Fires after the conversational form's CSS and JS bundles are enqueued. Hook in here to enqueue additional scripts/styles that depend on the conversational runtime being loaded, or to enqueue add-on assets only when the conversational view is active.
Parameters
$form(object) The form being rendered
Usage
add_action('fluentform/conversational_enqueue_assets', function ($form) {
wp_enqueue_script(
'my-conversational-extension',
plugin_dir_url(__FILE__) . 'assets/extension.js',
['fluent_forms_conversational_form'],
'1.0.0',
true
);
}, 10, 1);2
3
4
5
6
7
8
9
Reference
do_action('fluentform/conversational_enqueue_assets', $form);
This action is located in FluentForm\App\Services\FluentConversational\Classes\Form.
fluentform/conversational_frame_footer
Description
This action runs after rendering the conversational frame footer.
Usage
add_action('fluentform/conversational_frame_footer', function() {
// Do your stuff
}, 10, 0);2
3
Reference
do_action('fluentform/conversational_frame_footer');
This action is located in fluentform/app/Views/public/conversational-form.php
fluentform/conversational_frame_head
Description
This action runs after rendering the conversational frame header.
Usage
add_action('fluentform/conversational_frame_head', function() {
// Do your stuff
}, 10, 0);2
3
Reference
do_action('fluentform/conversational_frame_head');
This action is located in fluentform/app/Views/public/conversational-form.php

