Description #
This action fires after all the actions are 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 to your own confirmation as an Ajax response.
/*
* Source Action
*/
do_action('fluentform/before_submission_confirmation', $insertId, $this->formData, $this->form);
Usage #
The following would apply to all forms:
add_action('fluentform/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('fluentform/before_submission_confirmation', 'your_custom_confirmation_function', 20, 3);
function your_custom_confirmation_function($entryId, $formData, $form)
{
if ($form->id != 5) {
return;
}
// DO your stuff here
}
Parameters #
- $entryId (integer) Entry ID of this response
- $formData (array) Entry Response as key-value pairs array as input name as array key
- $form (Object) The $form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This action is located in fluentform/app/Services/Form/SubmissionHandlerService.php