Pass Incoming URL Parameters To Iframe Src With Javascript
I have a Webflow form on my landing page that collects name, email, and phone number. That form redirects to another page on my site that holds a full-screen TypeForm embed. I'm t
Solution 1:
That looks like a similar question here.
You could use Typeform Embed SDK, to have more control over your embed.
And retrieve the query parameters from the current page using javascript
let params = new URLSearchParams(location.search);
And then pass those parameters to typeform.
var url = "https://YOUR_SUBDOMAIN.typeform.com/to/YOUR_TYPEFORM_ID"
url += `?name=${params.get('name')}&email=${params.get('email')`;
But why not using a typeform for the first form too?
Post a Comment for "Pass Incoming URL Parameters To Iframe Src With Javascript"