-
PorchLightREAsked on April 29, 2016 at 4:04 PM
Your app is offered through Weebly as a third party form building tool. I have installed JotForm through the Weebly site editor. There appears to be a connection issue between Weebly and JotForm as I am receiving the following error:
"For some reason, we cannot access your JotForm Account
To fix this, please close this window and re-install the JotForm App"
I have removed and reinstalled three times with no luck. I have also called Weebly support and they indicated they could not help me resolve this as they do not have access to your servers.
Please advise. Thank you.
Page URL: http://www.porchlighthub.com/ -
HubersonReplied on April 29, 2016 at 5:25 PM
Can you try embedding the form using the IFrame method instead of the App - Adding-a-Form-to-Weebly.
You could also use the Weebly platforms code under Publish as a simpler method.
-
PorchLightREReplied on April 29, 2016 at 7:39 PM
Unfortunately, I am not savvy enough to edit the HTML on my site. I've tried the embed option, but that does not seem to be working either.
-
Chriistian Jotform SupportReplied on April 29, 2016 at 10:53 PM
Can you please try using the <iframe> part of the iFrame embed code without the <script>?
1. Copy the iFrame code as seen in this guide: Getting the Form iFrame Code
2. Then paste the code in a text editor like microsoft word.
3. Identify the code between the <iframe...></iframe> and only copy that part.
4. Then paste the iframe code to your weebly site as seen in this guide: Adding a Form to Weebly
Here's a sample iframe embed code, and the yellow highlighted part is the code that you should copy and paste to your site.
<iframe
id="JotFormIFrame"
onDISABLEDload="window.parent.scrollTo(0,0)"
allowtransparency="true"
src="https://form.jotform.com/61198748590974"
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>
If the issue persists, please let us know.