Thehustle.co captures an email and then you click ‘Join Free’ goes to typeform - how can we recreate this?
Best answer by mathio
View originalThehustle.co captures an email and then you click ‘Join Free’ goes to typeform - how can we recreate this?
Best answer by mathio
View originalthat will help this user and the Typeform folks who support the community to better answer your question
You can pass the email you captured outside of the typeform via hiden field when you set it up for your form.
Then you can embed the typeform and populate the hidden field dynamically with the value from you other form. With the latest embed lib the code will look like this:
<div data-tf-widget="<form-id>" data-tf-hidden="email=<value>"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
Alternatively you could read the param from your page URL. Fore example if you redirect users to a page like /signup.html?email=user@example.com you can use this snippet to pass the email to your form:
<div data-tf-widget="<form-id>" data-tf-transitive-search-params="email"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.