fluenform_before_submission_confirmation

Description #

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);

Usage #

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
}

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 filter is located in FluentForm\App\Modules\Form -> sendResponse() in app/Modules/Form/FormHandler.php

Powered by BetterDocs