We’re trying to re-insert the submitted form on the form submission confirmation page but we’re getting a “Oops! We could not locate your form.” error.
The inclusion is via the gravity_form() function and it works when including any other form except the already submitted one.
I can’t tell if this is a feature or a bug but the issue is caused by form_display.php:792:
//If form was submitted, read variables set during form submission procedure $submission_info = isset( self::$submission[ $form_id ] ) ? self::$submission[ $form_id ] : false;
Because this is a submitted form, the $form variable is overwritten with a null later in the code (lines 841, and 844), resulting in the incorrect “We could not locate your form” error.
Can someone let me know if there’s another way around this?
One ugly solution is probably load the GFFormDisplay class first and empty out the $submission array but that’s a total hackjob.