|
/ Documentation /Developer Documentation/Action Hooks/ srfm_localize_conditional_logic_data

srfm_localize_conditional_logic_data

Description

This action runs before applying any conditional logic to the form data. It lets you modify or inspect the data that will dictate how fields behave based on user input.

Parameters

  • $form_id (int) – The ID of the current form.

Hook Source

PHP
/**
* hook source
*/
do_action( ‘srfm_localize_conditional_logic_data’, $form_id );

Hook Usage

PHP
add_action(‘srfm_localize_conditional_logic_data’, 'your_custom_function', 10, 1);

function your_custom_function( $form_id )
{
   //Add code here
}

Hook Example

PHP
add_action(‘srfm_localize_conditional_logic_data’, your_custom_function, 10, 1);

function your_custom_function( $form_id )
{
$conditional_data = get_post_meta( $form_id, '_conditional_data’ );

          //Add code here
}
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