Previously I was using www.typeform.com - with their embedded forms the parent page would redirect upon form submission, and this is something I’d really like to be able to do with gravity forms.
I’m not a coder, but I’ve tried adding
window.top.location.href = “http://www.example.com”;
to the script created by the iframe addon, however this just redirects the parent page as soon as it loads.
When the form is submitted I’d like the parent window to go to a different page on the non-wordpress website where the iframe is embedded.
I will give it a go now, but I’m not sure what setting to put on the confirmations section of the gravity forms dashboard, if I am changing things from the functions.php file anyway?
If you are using the gform_confirmation filter for all confirmations, it does not matter what you select in the form builder for a confirmation: your code will override that.
As for redirecting the parent page after submission of the form in the iframe, I think you are going to be prevented from doing that due to browser security restrictions. That’s outside the control of what Gravity Forms can do.