谢谢 URL 未在表单 iframe 之外加载



我在我的 wix 网站上嵌入了一个表单 - 它看起来像这样:

<script type="text/javascript" src="https://premier.formstack.com/forms/js.php/formname"></script>

但是感谢页面 URL 一直在表单框架内加载。如何强制它在提交时加载到父页面上?

据我所知,您已经嵌入了JavaScript,当我检查时,它基本上为文档添加了表单。

document.write("<!DOCTYPE html>"+"n");
document.write("<html  lang="">"+"n");
document.write("<head>"+"n");
document.write("    <meta charset="utf-8" />"+"n");
document.write("    <title>Formstack</title>"+"n");
document.write("    <link rel="stylesheet" type="text/css" href="/forms/style.css" />"+"n");
document.write("</head>"+"n");
document.write("<body>"+"n");
document.write("    <div id="error" class="formError"><strong>ERROR:</strong> It looks like we couldn't find a form with that URL. Please double-check the URL and try again. If you're still having trouble, try contacting the person who sent you this form. (Error ID: b15b76df14cf6527b8ee)"+"n");
document.write("        "+"n");
document.write("                <br /><br />"+"n");
document.write("        <form class="formErrorBack" action="">"+"n");
document.write("            <input type="button" value="Back" onclick="history.back()" />"+"n");
document.write("        </form>"+"n");
document.write("                "+"n");
document.write("    </div>"+"n");
document.write("</body>"+"n");
document.write("</html>"+"n");
document.write(""+"n");

但是您需要指定formname

例如,当我将其替换为30_day_employee_review您可以看到加载的表单时。

<script type="text/javascript" 
src="https://premier.formstack.com/forms/js.php/30_day_employee_review"></script>

干杯,欢迎来到StackOverflow!

最新更新