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

    form.jotformeu.com uses an invalid security certificate

    Asked by ITSupportCHHS on March 19, 2014 at 08:20 AM

    Hi.

    I've had a user report that they cannot access one of our forms in different browsers. Seems ok in Safari but Chrome is just blank (sad face) and Firefox gives the following error:

    form.jotformeu.com uses an invalid security certificate.
    The certificate is only valid for the following names: jotform.com , www.jotform.com (Error code: ssl_error_bad_cert_domain)

    I'm not sure when this strted to happen as it has only just been reported to me.

    The page upon which the form sits is secure (https).

    There was another question on the forum a few weeks back which sounds similar but that looks to be fixed?

    ( http://www.jotform.com/answers/79670-My-form-says-its-not-secure-Help-Please )

    Is there a way of making this work in these browsers?

    Thanks.

    Allan.

    Page URL:
    Internalwebsite

    Screenshot
    jotformeu JotForm different www thanks
  • Profile Image
    JotForm Support

    Answered by KadeJM on March 19, 2014 at 11:24 AM

    I believe I understad what you mean in regards to this issue. Are you using the form's direct link or is it embedded on a website page of yours where you are experiencing this problem? Can you please provide us with this extra bit of information and we will gladly double-check and investigate this matter more just to see what's going on with it for you.

  • Profile Image

    Answered by ITSupportCHHS on March 20, 2014 at 07:24 AM

    Hi.

    It is embedded on the page using the folllowing code (below). If I attempt to view the Frame Source using the Chrome right-click menu I get the yellow warning page which says:

    "You attempted to reach form.jotformeu.com, but instead you actually reached a server identifying itself as jotform.com. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of form.jotformeu.com.

    You should not proceed, especially if you have never seen this warning before for this site."

    If I then click to proceed the form appears on the page ok until the  browser is shut down and then gets blocked again.

    This sounds like your secure certificate is incorrect but could you investigate.

    Thanks.

    Allan.

    ------------------------------------------------------------------------------

    <p><iframe id="JotFormIFrame" onload="function onload(event) {

      function onload(event) {

      function onload(event) {

      function onload(event) {

      function onload(event) {

      window.parent.scrollTo(0,0)

    }

    }

    }

    }

    }" allowtransparency="true" src="https://form.jotformeu.com/form/31204244651342" frameborder="0" style="width: 100%; height: 1665px; border: none;" scrolling="no"></iframe></p>

    <script type="text/javascript">// <![CDATA[

    window.handleIFrameMessage = function(e) {var args = e.data.split(&amp;amp;amp;amp;quot;:&amp;amp;amp;amp;quot;);var iframe = document.getElementById(&amp;amp;amp;amp;quot;JotFormIFrame&amp;amp;amp;amp;quot;);if (!iframe)return;switch (args[0]) {case &amp;amp;amp;amp;quot;scrollIntoView&amp;amp;amp;amp;quot;:iframe.scrollIntoView();break;case &amp;amp;amp;amp;quot;setHeight&amp;amp;amp;amp;quot;:iframe.style.height = args[1] + &amp;amp;amp;amp;quot;px&amp;amp;amp;amp;quot;;break;}};if (window.addEventListener) {window.addEventListener(&amp;amp;amp;amp;quot;message&amp;amp;amp;amp;quot;, handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent(&amp;amp;amp;amp;quot;onmessage&amp;amp;amp;amp;quot;, handleIFrameMessage);}

    // ]]></script>

  • Profile Image
    JotForm Support

    Answered by KadeJM on March 20, 2014 at 10:17 AM

    Thank You for the extra information about this problem which you have provided. I can see what you mean by this because it shows such with the code you provided above. However, this is actually a conflict because the form is not being referenced so it is not loaded onto the page correctly. It appears to have been modified from the standard recommended iframe. Even after I played around with the code to try to fix it to no avail did it work because of that.

    Your Problem:

    It's a bit difficult to figure out the root of the problem because I am unable to see the page where this full source is hosted live to see your exact problem. But I think it's because of no references or if you've loaded it then your host is probably converting and stripping it out. This is creating the security issue which you see along with the referenced null error.

    I'm convinced that it's not us since the standard iFrame including your form as a standalone is working and I did not see any security issues crop up with either when hosted via a live source editor which displays this on the same aspect level minus the cdata that can sometimes interfere.

    Are you not able to use the standard iframe method? What host are you using for your form? Is there a live page we can see with this somewhere?

  • Profile Image

    Answered by ITSupportCHHS on March 21, 2014 at 06:04 AM

    Hi.

    Thanks for investigating for us. After reading your reply I went back to the form embed button on your website and re-copied the iframe code across. This seems a little different from when I first did this. Our site does wrap this slightly when pasted in (Moodle2) but does now seem to work fine without errors or warnings. Here's the final code that works:

    ---------------------------------------------

    <p><iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformeu.com/form/31204244651342" frameborder="0" style="width: 100%; height: 1463px; border: none;" scrolling="no"></iframe></p>

    <script type="text/javascript">// <![CDATA[

    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>

    ------------------------------------------------------------

    Thanks again for your help.

    Allan.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 21, 2014 at 09:24 AM

    Hello Allan,

    Please try to embed your form with the following iFrame embed code and see if that helps you resolve the warning issue:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://www.jotformeu.com/form/31204244651342" frameborder="0" style="width:100%; height:1522px; 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>

    Thank you!