When I fill in this form you get redirected to a new page with step 2 of the form. I also have enabled the pass field data. But when I click on this button I want that the filled in data won’t be submitted. I want to pass the data to the next page with a other form and on that form when the user is clicking on the button the data need to be submitted to gravity forms.
Could someone help me out how I can fix this problem?
You’re probably best off to employ one of the methods here for removing the entry data after submission. Since you’re wanting to run through the submission in order to run the confirmation redirect, the entry will need to be processed and briefly saved. It could be removed immediately after, though. See Delete Entry Data after Submission.
Thanks for helping me out
So I added this code to my functions.php
// Target submissions from form ID 1.
// Change gform_after_submission_1 to reflect your target form ID, or use gform_after_submission to target all forms.
add_action( 'gform_after_submission_1', 'remove_form_entry' );
function remove_form_entry( $entry ) {
GFAPI::delete_entry( $entry['id'] );
}
And it is actually working but how can I make sure that this filled date
So to make a summary, I want to skip the first submission button action with the data to the 2nd redirect page with the form. When the user press the submit button on this page the data from form 1 and 2 gets collected.