Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the powerful-docs domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the convertpro-addon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131

Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131
srfm_suretriggers_integration_data_filter - SureForms
|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_suretriggers_integration_data_filter

srfm_suretriggers_integration_data_filter

Description:

This filter returns an array of data needed to create dummy data for OttoKit integrations. Use it to prepare the necessary data before triggering actions in your integrations.

Parameters:

  • $data (array) – An array containing the required sample data for OttoKit integration
  • form_id (int) – The current form ID from which OttoKit is triggered.

Filter Source:

/**
* filter source
*/
apply_filters( ‘srfm_suretriggers_integration_data_filter’, $body, $form_id);

Filter Usage:

add_filter(‘srfm_suretriggers_integration_data_filter’, 'your_custom_function', 10, 2);

function your_custom_function( $body, $form_id )
{
   //Add code here
   return $body;
}

Filter Example:

add_filter(‘srfm_suretriggers_integration_data_filter’, your_custom_function, 10, 2);

function your_custom_function( $body, $form_id )
{
   if ( ! isset( $body['sample_response'] ) ) {
        return $body;
   }
   //Add code here
   return $body;
}
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