|
/ Documentation /Developer Documentation/Action Hooks/ srfm_pro_before_update_entry_data

srfm_pro_before_update_entry_data

Description

Fires (in SureForms Pro) before a field’s entry data is updated, once per field. Receives a context array describing the field and the surrounding submission data. (Pro only)

Parameters

$context (array) – Keys: field_name (string), field_value (mixed), saved_form_data (array), current_data (array).

Hook Source

PHP
/**
* hook source
 */
do_action( 'srfm_pro_before_update_entry_data', [ 'field_name' => $field_name, 'field_value' => $v, ... ] );

Hook Usage

PHP
add_action( 'srfm_pro_before_update_entry_data', 'my_callback', 10, 1 ); 
function my_callback( $context ) { 
// Inspect $context['field_name'], $context['field_value'], etc. 
}

Hook Example

PHP
add_action( 'srfm_pro_before_update_entry_data', 'my_callback', 10, 1 ); 
function my_callback( $context ) { 
// Inspect $context['field_name'], $context['field_value'], etc. 
}
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
Table of Contents
Scroll to Top