|

srfm_form_submit_response

Description

This filter returns an array of data sent to the srfm_form_submit action, which third-party integrations can use to perform actions after a successful form submission.

Parameters

  • $forms_data (array) – An array of data related to the submitted forms.

Filter Source

PHP
/**
* filter source
*/
apply_filters( ‘srfm_form_submit_response’, $form_submit_response_data );
/**
* filter source
*/
apply_filters( ‘srfm_form_submit_response’, $form_submit_response_data );

Filter Usage

PHP
add_filter(‘srfm_form_submit_response’, 'your_custom_function', 10, 1);

function your_custom_function( $form_submit_response_data )
{
   //Add code here
   return $form_submit_response_data;
}

Filter Example

PHP
add_filter(‘srfm_form_submit_response’, your_custom_function, 10, 1);

function your_custom_function( $form_submit_response_data )
{
        if ( empty( $form_submit_response_data['form_id'] ) ) {
                return $form_submit_response_data;
        }
          //Add code here
        return $form_submit_response_data
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top