Hi,
I’m hoping someone can shed some light on an issue I’m having.
I have a Typeform embedded on a site (form A) that uses redirect on completion to send the user to another typeform (form B). On form B, there are two endings. One is a true ending with no link, and one uses a button (not the redirect on completion feature) to lead back to the start of form B, passing a hidden field.
Currently, when form A ends the redirect opens in the parent window and not within the iframe. I’d like to keep the entire form sequence within the embed. My problem sounds similar to this thread, except that I have full control of the page that hosts the embed. I’m moderately familiar with javascript and can use the embed SDK instead of the pre-made embed codes if needed.
Is it possible to do what I am trying to do?
Here’s a summary of the situation:
Context
Embedded form A redirects to form B
Current behavior
When form A ends the redirect opens in the parent window and not within the iframe.
Desired behavior
The entire form sequence remains within the iframe.
Attempts at a solution
Implementation | Result |
---|---|
Full page embed code from the share menu | Redirect from form A opens in parent window |
Standard embed code from the share menu | Redirect from form A opens in parent window |
iframe using Typeform url | Redirect from form A opens in parent window |
Nested iframes (embedding a second site that contains only a Typeform embed, with and without sandbox attributes). | Various console errors
|