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

    Having trouble with a from on https

    Asked by ctbta on February 10, 2013 at 12:08 PM

    My form is not displaying in IE and I believe it has something to do with my page being https. Some of the errors include:

    Internet Explorer cannot display the webpage

    Stack Overflow at line 225.

    http://www.ctbta.org/wines-of-march.php

    I have this code on the page:

    $baseURL = "www.ctbta.org";

    if ($_SERVER['HTTPS'] != "") {
        $httpProtocol = "https";
    } else {
        $httpProtocol = "http";
    }

    if (strtoupper($_SERVER['HTTPS']) != "ON") {
        ?>
        <META HTTP-EQUIV="refresh" CONTENT="0;URL=https://<?= $baseURL ?>/wines-of-march.php">
        <?
        die();
    }

    If I turn the above code off the form displays but I lose the styling on my page. Is there a trick to get the form to display if the page is https?

    Page URL:
    http://www.ctbta.org/wines-of-march.php

  • Profile Image
    JotForm Support

    Answered by jonathan on February 10, 2013 at 06:31 PM

    Hi,

    Since your website is using https, your form should also be embedded using its secure URL.

    Please use this guide -How-can-I-receive-SSL-Submissions to be able to get the https version of the embedded form.

    The complete code should be like this:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotform.us/form/30247185086152" frameborder="0" style="width:100%; height:953px; 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>

     

    Please try this and inform us if further issue occur.

    Thanks

  • Profile Image

    Answered by kreative on February 14, 2013 at 09:18 AM
    Thanks, it is working now.
    Keith Knowles
    CEO
    Knowles Kreative
    keith@knowleskreative.com
    www.knowleskreative.com
    p: 860.521.0206
    c: 860.478.5981
    f: 800.508.7581
    My social profiles: [image:
    Facebook] [image:
    Twitter] [image:
    LinkedIn] [image:
    Google Plus]
    IM me: [image: Google Talk] keithcknowles [image: AIM] keithck1973
    [image: Twitter] Latest tweet: Keith
    Knowles is turning 40 tomorrow! And this year I'm doing something CRAZY!
    I'm donating my birthday. That's... http://t.co/aONKM6nn
    Follow @knowleskreative Reply

    Retweet

    12:59 Feb-08