Submit delay when using iFrame url | Community
Skip to main content
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

Best answer by cagius

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!

View original

4 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 19, 2022

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. 


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • 390 replies
  • July 20, 2022

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? 😇


  • Author
  • Explorer
  • 1 reply
  • Answer
  • July 20, 2022

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!


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • July 20, 2022

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


Reply