bookmark_bordergform_submission_values_pre_save

Description

Allows the modification of submitted values before the incomplete submission is saved.

Usage

add_filter( 'gform_submission_values_pre_save', 'my_function_call' );

Parameters

  • $submitted_values array
    The submitted values.

  • $form array
    The Form Object.

Example

add_filter( 'gform_submission_values_pre_save', 'submission_values_pre_save', 10, 2 );

function submission_values_pre_save( $submitted_values, $form ) {
  $submitted_values['custom_value'] = $_POST['custom_value'];
  return $submitted_values;
}

Source Code

This filter is located in forms_model.php