Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active February 22, 2026 12:34
Show Gist options
  • Select an option

  • Save spivurno/bab25f052a4a9ebeacfab6f8fab5faf4 to your computer and use it in GitHub Desktop.

Select an option

Save spivurno/bab25f052a4a9ebeacfab6f8fab5faf4 to your computer and use it in GitHub Desktop.
Confirming Email with Gravity Forms Save & Continue (aka Save and Continue to Continue)
<?php
$form_id = 133;
$email_field_id = 6;
$token_field_id = 8;
add_filter( 'gform_incomplete_submission_post_get', function( $submission_json, $token, $form ) use ( $form_id, $token_field_id ) {
$data = json_decode( $submission_json, true );
if ( $form['id'] == $form_id ) {
$data['submitted_values'][ $token_field_id ] = $token;
}
return json_encode( $data );
}, 10, 3 );
add_action( "gform_pre_process_{$form_id}", function ( $form ) use ( $form_id, $email_field_id ) {
if ( rgpost( 'gform_save' ) ) {
$_POST['gform_resume_email'] = rgpost( "input_{$email_field_id}" );
}
} );
@faisalahammad
Copy link

} );Confirming Email with Gravity Forms 

Please remove this text or add double slashes (//) to make it a comment. Thank you, David.

@spivurno
Copy link
Author

@faisalahammad Oops! Typo. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment