Hi. I have a Typeform survey in my app which opens in a lightbox, however if I link this to another survey, rather than open in the same lightbox, the second survey opens full-screen - the only way for the user to get back to my app is via the back button. Is there a solution for this?
You can specify redirect target in your typeform embed. More details in the embed lib docs (look for redirectTarget) or in my blog article from last year. You need to use the value _self.
@dngood it looks like you are embedding your typeform directly in an iframe. If you want to use this feature, you need to use our embed SDK.
You can specify redirect target in your typeform embed. More details in the embed lib docs (look for redirectTarget) or in my blog article from last year. You need to use the value _self.
@dngood it looks like you are embedding your typeform directly in an iframe. If you want to use this feature, you need to use our embed SDK.
Unfortunately the production version needs to be in an environment where all I can do is provide a URL, the contents of which will display in an iframe in a lightbox, so no options to use anything more complicated that that. So I think this looks like it’s not possible this time.
We could have a look under the hood at what does embed SDK do to achieve this functionality.
Here you can see that it actually adds a query param to the URL. So if you add ?typeform-embed-redirect-target=_self to your typeform URL it should work. However no promises for the future, since the official approach is to use the SDK 😃
@mathio , thanks, unfortunately, adding ?typeform-embed-redirect-target=_self to the end of the Typeform redirect URL doesn’t work - the second survey still appears full-screen.
However, I have since found a different (non-Typeform) solution which we will use in this case. Thanks for your help.