What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Embed form to Wordpress does not work

    Asked by TriYoga on July 28, 2014 at 04:46 PM
    I am trying to embed form into wordpress (used wp code, iframe) but it does not work, somehow my header appears before the form twice. I tried plugin with shortcode as well... still does not work
  • Profile Image
    JotForm Support

    Answered by Mike_T on July 28, 2014 at 04:59 PM

    Please provide us with a link to the Wordpress page with embedded form. In this way, we will be able to investigate it further.

    Thank you.

  • Profile Image

    Answered by TriYoga on August 03, 2014 at 01:14 AM

    Thanks for quick reply

    here is what happens



    thank you!

  • Profile Image
    JotForm Support

    Answered by Welvin on August 03, 2014 at 05:49 AM

    What is the current embed method on the page? Is it the default Javascript Method or the Embed Form Plugin? 


    If it's the default javascript method, the embed codes should be like this:

    <script type="text/javascript" src="//form.jotform.me/jsform/42084565345154"></script>


     If it's the embed form plugin, the codes should be like this:

    <script type="text/javascript" src="https://www.jotform.com/jsform/42084565345154?redirect=1"></script>


    The shortcodes of the form should be: [jotform id="42084565345154"]. You have to make sure that this shortcode is NOT inclose with other tags. And place it inside the Text Editor:

    The current codes on the page is:

    <script src="//form.jotform.us/jsform/42084565345154"></script> 

    ...which I think an incorrect codes.


    Please kindly make sure to check and correct that.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by Welvin on August 03, 2014 at 05:52 AM

    Also, try the iFrame Method: http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code, but without the script tags. For example, your iFrame codes are these:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotform.us/form/42084565345154" frameborder="0" style="width:100%; height:3595px; 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;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    You have to remove the codes highlighted with the Yellow color.


  • Profile Image

    Answered by TriYoga on August 03, 2014 at 11:41 AM
    Thanks a lot!
    I tried shortcode before and default embed, wp embed, got all of the plugin
    for jot forms - everything gave same result
    but your last answer with iframe when I deleted the line made it perfect.
    So I need to us iframe and delete this code on each form?
    thank you
  • Profile Image
    JotForm Founder

    Answered by aytekin on August 03, 2014 at 02:12 PM

    If it causes problems you can delete the JavaScript part. All it does is to resize the iframe when a resize is needed on Multi-page forms or forms with conditions.

  • Profile Image

    Answered by TriYoga on August 03, 2014 at 02:21 PM
    Will deleting it effect the conditions if I have any?
    Does iframe works ok on mobile devices?

    thanks a lot!
  • Profile Image

    Answered by KadeJM on August 03, 2014 at 05:29 PM

    No, it should not. Your conditions are in your form but the files used to run it are separate from what was previously mentioned above.