How to change the entry id of gravity forms after submit

577 Views Asked by At

How can I change the entry id of the form in this case I want to change the form entry number to the current user id that is logged in on the site. I've tried the function below but the entry id saved on the database is not changing

add_filter( 'gform_entry_id_pre_save_lead', 'my_update_entry_on_form_submission', 10, 2 );
function my_update_entry_on_form_submission( $entry_id, $form ) {
    $update_entry_id = rgpost( 'input_4',true );
    
    return $update_entry_id ? $update_entry_id : $entry_id;
}
0

There are 0 best solutions below