0
我正在实现一个typeform,我想对它进行一些定制。我希望用户在主页上提交电子邮件地址,并在另一个详细信息页面上填写其他问题。我现在通过网址传递电子邮件地址,但我无法将其发送到TypeForm iframe。谁曾经这样做过?你可以在两页分割一个类型吗?
<form class="form-inline" action="join.html" method="GET">
<div class="form-group">
<input type="text" class="form-control" id="exampleInputEmail2" placeholder="[email protected]" name="email">
</div>
<input type="submit" class="btn btn-default reverse" value="Join now!"></input>
</form>
我的网址是这样的:somethinglikethis.com/[email protected]
和jQuery上join.html:
$("div.typeform-widget div.input input[type='text']").val(window.location.search);
$('iframe').css('display', 'none');
我尝试了很多其他的东西为好,但我不能使它工作...
为什么你不把电子邮件ID保存在变量中,然后从iframe中访问它? –
之前尝试过,但它似乎iframe阻止任何JavaScript输入... –
不,它不会,但它不直接访问它。我会发布我的答案,让我知道它是否有帮助。 –