This action fires after all the actions completed regarding the form submission. After this hook the final form submission ajax response completes. It’s recommended to use this action to do your own integrations or response your own confirmation as ajax response.
/* * Source Action */ do_action('fluenform_before_submission_confirmation', $insertId, $this->formData, $this->form);
The following would apply to all forms:
add_action('fluenform_before_submission_confirmation', 'your_custom_confirmation_function', 20, 3); function your_custom_confirmation_function($entryId, $formData, $form) { // DO your stuffs here }
The following would apply to a specific form id: 5:
add_action('fluenform_before_submission_confirmation', 'your_custom_confirmation_function', 20, 3); function your_custom_confirmation_function($entryId, $formData, $form) { if($form->id != 5) { return; } // DO your stuffs here }
This code should be placed in the functions.php file of your active theme.
This filter is located in FluentForm\App\Modules\Form -> sendResponse() in app/Modules/Form/FormHandler.php
Powered by BetterDocs