Question

Can I use dynamic hidden fields with an embedded typeform with a query string?

  • 24 February 2021
  • 1 reply
  • 413 views

Is there a way to pass a query string to an embedded typeform to populate hidden fields?



Example here:  We would embed this in one of our pages, but would like to pass a query string to populate the 3 hidden fields below.  Can this be done??  

<div class="typeform-widget" data-url="https://form.typeform.com/to/rNs90I?typeform-medium=embed-snippet#reference_name=xxxxx&applicant_name=xxxxx&applicant_fn=xxxxx" 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>

1 reply

Userlevel 7
Badge +5

Hey

It should work exactly the way you shared it.

Did you encounter any issues with it?

Reply