What about the EMBED code? How do i generate a new embed code based on the new link?

  • mcarnival168
    Asked on April 26, 2017 at 8:18 AM

    Dear JotForm,
    What about the EMBED code? How do i generate a new embed code based on the
    new link? Can you please advice or provide me with the code?
    So in the future when i create new forms, what should i do to so that my
    forms are not blocked in China or any part of the world?
    Thanks and regards,
    LOUIE

  • Helen
    Replied on April 26, 2017 at 8:29 AM

    Hello Louie,

    Thank you for contacting us. 

    You can use these embed code with your form ID. Here is an examples:

    Source code:

    <script type="text/javascript" src="https://form.jotform.com/jsform/70810654804454"></script>

    iFrame:

    <iframe id="JotFormIFrame-70810654804454" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.com/mcarnival168/2017-carnival--2017-merchant-applic" frameborder="0" style="width:100%; height:539px; border:none;" scrolling="no"> </iframe> <script type="text/javascript"> var ifr = document.getElementById("JotFormIFrame-70810654804454"); if(window.location.href && window.location.href.indexOf("?") > -1) { 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; } } window.handleIFrameMessage = function(e) { var args = e.data.split(":"); if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[2]); } else { 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); } </script>

    If you need any further assistance please do not hesitate to contact us. 

  • mcarnival168
    Replied on April 28, 2017 at 7:43 AM
    Dear JotForm,
    After changing my previous form link
    https://form.jotform.me/mcarnival168/2017-carnival--2017-merchant-applic
    to the revised https://jotform.me/mcarnival168/2017-carnival--2017-
    merchant-applic , my integrated GOOGLE Spreadsheets Integration has stopped
    receiving updates. The spreadsheet's link is as follow:
    https://docs.google.com/spreadsheets/d/1iGsDOV_KF02EaHvzCk72zEIGpkF9uW6bhWLV30GN_Go/edit
    Please advice on rectifying the problem.
    Thanks and regards
    Thank you .
    Best Regards,
    *MK Wong (hp:- 018-870 4192)O2O Marketing Coordinator *
    *MACADEMY INTERNATIONAL SDN BHD*
    2-3, Jalan Avenue 3,
    Avenue Ampang,
    68000 Ampang, Selangor,
    Tel No.: 03-4292 1973
    Biz Hour: 10am - 7pm (Mon-Fri)
    Website:- www.mmallv2u.n et

    ...
  • Rose
    Replied on April 28, 2017 at 9:00 AM

    As your next question is related another topic, I moved it to a different thread. You will be replied in a short time.

    https://www.jotform.com/answers/1131044