-
urbanecolifeAsked on January 15, 2016 at 12:40 AM
I have an online magazine and recently edited a Subscription Form for my web site. However, when I click Publish to receive the Embed code to link it to on my software (I am using Wix), nothing happens. It has also somehow deleted the original form from my web site.
Please could you assist - I need this form to work urgently. It can be found at: http://www.jotform.com//?formID=52462061099556
The web address is www.urbanecolife.biz if you need that as well - the form is under the Subscribe Page on the Subscribe button on the left of the page under the magazine cover photo.
Thank you.
Kind regards
Bronwyn
Bronwyn Howard - Editor, Urban Eco Life E-magazine
-
BJoannaReplied on January 15, 2016 at 4:52 AM
On page you provided this form http://www.myjotform.com/form/53452795791569 is embedded.
I have logged in to your account and I was able to copy the code of your form for Wix Site.
This is the code that I copied:
<iframe
id="JotFormIFrame"
onDISABLEDload="window.parent.scrollTo(0,0)"
allowtransparency="true"
src="https://form.myjotform.com/52462061099556"
frameborder="0"
style="width:100%;
height:539px;
border:none;"
scrolling="no">
</iframe>
<script type="text/javascript">
window.handleIFrameMessage = function(e) {
var args = e.data.split(":");
var iframe = document.getElementById("JotFormIFrame");
if (!iframe)
return;
switch (args[0]) {
case "scrollIntoView":
iframe.scrollIntoView();
break;
case "setHeight":
iframe.style.height = args[1] + "px";
break;
case "collapseErrorPage":
if (iframe.clientHeight > window.innerHeight) {
iframe.style.height = window.innerHeight + "px";
}
break;
case "reloadPage":
window.location.reload();
break;
}
var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;
if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {
var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)};
iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*");
}
};
if (window.addEventListener) {
window.addEventListener("message", handleIFrameMessage, false);
} else if (window.attachEvent) {
window.attachEvent("onmessage", handleIFrameMessage);
}
if(window.location.href && window.location.href.indexOf("?") > -1) {
var ifr = document.getElementById("JotFormIFrame");
var get = window.location.href.substr(window.location.href.indexOf("?") + 1);
if(ifr && get.length > 0) {
var src = ifr.src;
src = src.indexOf("?") > -1 ? src + "&" + get : src + "?" + get;
ifr.src = src;
}
}
</script>
That is the code of your form http://www.myjotform.com/form/52462061099556. Embed that for to your website. Also inside of this guide you can find out how to embed form to Wix website:
http://www.jotform.com/help/70-Adding-a-Form-to-Wix-Site
Hope this will help. Let us know if you need further assistance.