Description #
This action fires after form submission and before processing the form’s additional actions. If you want to do any task before form submission
/*
* Source Action
*/
do_action('fluentform/before_form_actions_processing', $insertId, $formData, $form);
Usage #
The following would apply to a specific form id: 5:
add_action('fluentform/before_form_actions_processing', 'your_custom_function', 10, 3);
function your_custom_function($insertId, $formData, $form)
{
if ($form->id != 5) {
return;
}
// Do your stuff here
}
Parameters #
- $insertId (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
Source Code #
This action is located in fluentform/app/Services/Form/SubmissionHandlerService.php