I am redirecting a user to a custom template after they submit a form. I'd like to include their name on the thank you page, but as it's a redirect, I can't get any form data.
I tried editing this line on mod.forms.php
$form['return'] = $form['form_settings']['return_url'];
To
$form['return'] = '/mytmeplategroup/thankyou/' . ee()->input->post('name_first');
But as the return URL is generated BEFORE the form is submitted, this is clearly the wrong answer.
Can I pass custom variables to a new template (worst case, just a form submission entry Id and I can go get the data perhaps?)