Answered

Submit delay when using iFrame url


Hi, i’m embedding TypeForm within an iFrame by using the URL and I’m trying to set the “data-submit-close-delay” to 60sec but it doesn’t seem to work. Find below an example

 

https://form.typeform.com/to/iFs521fw#data1=${data1}&data2=${data2}&data-submit-close-delay=60

Am I missing something? I couldn’t find any docs regarding such approach. thanks

icon

Best answer by cagius 20 July 2022, 13:47

View original

4 replies

Userlevel 7
Badge +5

Hi @cagius Could you send the URL where you have the form embedded? 

Additionally, I would recommend embedding the form using one of our methods here to be sure the code will function correctly. 

Userlevel 7
Badge +5

Hey @cagius

Did you get the code snippet through the Share panel, or are you using the Embed SDK, or directly the typeform URL in an iframe object?


To be able to setup the autoclose setting you would need to use the Embed SDK and add the 

data-tf-auto-close=2000

to the code snippet, so the form closes after 2sec.

@mathio is that correct? 😇

Hi @Liz, I wish I could send you the URL but its behind a auth system which I cannot give you access. Thanks for your replies @Liz & @picsoung, I found a work around to this from our end since how its implemented is using the share url and use it within an iframe object.

Thanks again!

Userlevel 7
Badge +5

Glad to hear that worked, @cagius , and thanks for sharing!

Reply