-
CamillasignoriniDomanda del 31 gennaio 2024 alle ore 16:46
inseriamo il codice sorgente nell'email da inviare su jotform ma l'email arriva vuota
-
Edwin Enterprise SupportRisposta del 31 gennaio 2024 alle ore 19:08
Hi Camilla,
Thanks for reaching out to Jotform Support. Unfortunately, our Italian Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.
Now, let me help you with your question. Are you referring to the notification and autoresponder email alerts that you have added source code into? Can you let us know which form you are referring to so we can take a look? If you had received a submission on that form and the email alert was empty, please provide the Submission ID to us. Also, if you can share the URL link to your form, I can check it out and help you with a solution.
If you are not sure how to find the URL of your form, let me show you how:
- In Form Builder, click on Publish.
- Click on Copy Link.
- Share the URL link with us.
For more information, check out our guides on Where to Find Your Form URL and Where to Find the Submission ID.
Once we hear back from you, we'll be able to move forward with a solution.
-
Edwin Enterprise SupportRisposta del 31 gennaio 2024 alle ore 19:27
Hi Camilla,
After looking into your question again, it seems you might be referring to the Share on Email feature. If that's the case, let me show you how to embed the form into the email using the iFrame Embed code.
- In Form Builder, click on Publish.
- Click on Embed.
- Click on iFrame.
- Click on Copy Code.
- Click on Email.
- Click on Share on Email.
- Click on the Source Code icon.
- Delete what's in the box and paste in your code, then click OK.
- Your form will now be embedded, and you can click Send.
For more information, check out our guides on Getting Your Form's iFrame Code and How to Send a Form via Email.
Let us know if you have any other questions.
-
CamillasignoriniRisposta del 31 gennaio 2024 alle ore 19:43
Grazie mille, abbiamo provato così però l'email arriva vuota.
Il link è questo:
<iframe
id="JotFormIFrame-240296746795371"
title="Dichiarazione istruzione parentale 2024/2025"
onDISABLEDload="window.parent.scrollTo(0,0)"
allowtransparency="true"
allowfullscreen="true"
allow="geolocation; microphone; camera"
src="https://form.jotform.com/240296746795371"
frameborder="0"
style="min-width:100%;max-width:100%;height:539px;border:none;"
scrolling="no"
>
</iframe>
<script type="text/javascript">
var ifr = document.getElementById("JotFormIFrame-240296746795371");
if (ifr) {
var src = ifr.src;
var iframeParams = [];
if (window.location.href && window.location.href.indexOf("?") > -1) {
iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf("?") + 1).split('&'));
}
if (src && src.indexOf("?") > -1) {
iframeParams = iframeParams.concat(src.substr(src.indexOf("?") + 1).split("&"));
src = src.substr(0, src.indexOf("?"))
}
iframeParams.push("isIframeEmbed=1");
ifr.src = src + "?" + iframeParams.join('&');
}
window.handleIFrameMessage = function(e) {
if (typeof e.data === 'object') { return; }
var args = e.data.split(":");
if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[(args.length - 1)]); } else { iframe = document.getElementById("JotFormIFrame"); }
if (!iframe) { return; }
switch (args[0]) {
case "scrollIntoView":
iframe.scrollIntoView();
break;
case "setHeight":
iframe.style.height = args[1] + "px";
if (!isNaN(args[1]) && parseInt(iframe.style.minHeight) > parseInt(args[1])) {
iframe.style.minHeight = args[1] + "px";
}
break;
case "collapseErrorPage":
if (iframe.clientHeight > window.innerHeight) {
iframe.style.height = window.innerHeight + "px";
}
break;
case "reloadPage":
window.location.reload();
break;
case "loadScript":
if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; }
var src = args[1];
if (args.length > 3) {
src = args[1] + ':' + args[2];
}
var script = document.createElement('script');
script.src = src;
script.type = 'text/javascript';
document.body.appendChild(script);
break;
case "exitFullscreen":
if (window.document.exitFullscreen) window.document.exitFullscreen();
else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen();
else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen();
else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen();
else if (window.document.msExitFullscreen) window.document.msExitFullscreen();
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}), "*");
}
};
window.isPermitted = function(originUrl, whitelisted_domains) {
var url = document.createElement('a');
url.href = originUrl;
var hostname = url.hostname;
var result = false;
if( typeof hostname !== 'undefined' ) {
whitelisted_domains.forEach(function(element) {
if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) || hostname === element ) {
result = true;
}
});
return result;
}
};
if (window.addEventListener) {
window.addEventListener("message", handleIFrameMessage, false);
} else if (window.attachEvent) {
window.attachEvent("onmessage", handleIFrameMessage);
}
</script>
potete aiutarci?
-
CamillasignoriniRisposta del 31 gennaio 2024 alle ore 19:45
-
Myla Jotform SupportRisposta del 31 gennaio 2024 alle ore 23:56
Hello Camilla,
Thank you for getting back to us. I’m sorry you're having difficulties with this. I tested it on my form to see if I could replicate the issue, and I ran into the same issue. We apologize for the confusion, after further checking into this, the Send Email Feature for sharing is by default can only share form link. Unfortunately, it is not possible to embed a form in an email body, even if added on source code. You can only share the link of the form for them to be directed to the form to make a submission. We can open a feature request for it, but when or if it's developed depends on our Developer's workload, how viable it is, and how many other users also request it. If you'd like to proceed, let us know.
Keep us updated and let us know if you need any more help.