Hello,
It’s probably a silly/stupid question but I noticed that the code that is generated in the Share tab is way much more “complicated” than what’s described in the Embed SDK documentation.
Share tab generated code :
<div class="typeform-widget" data-url="https://form.typeform.com/to/<form-id>?typeform-medium=embed-snippet" style="width: 100%; height: 500px;"></div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script"),0]; q.parentNode.insertBefore(js,q) } })() </script>
VS
Embed SDK documentation :
<div data-tf-widget="<form-id>" id="form"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
You will agree that the second one is way much more simple to use and read.
I tried both codes and the result looked the same.
Any reason I should use the first one instead of the second?
Thanks
Ben