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 submits without validating Required fields

    Asked by XLAutomation on March 27, 2014 at 06:27 PM

    I have a form on which I am trying to capture some details from our customers

    If they select a Product, I want a new field to display that asks them for the Product

    At the moment on the Test URL if you click Submit it does not perform any validation.

    Can you please assis me in getting this working.

    It is a Google Site...also I am using Chrome for this testing

    Page URL:
    https://sites.google.com/a/xlautomation.com.au/formtesting/

    form submits product Google Site site select
  • Profile Image
    JotForm Support

    Answered by Welvin on March 27, 2014 at 07:58 PM

    Hi,

    The required field validation is working fine here, see screenshot:

     

    Anyway, since you noticed the issue, I would advise re-embedding your form using our iFrame Method: Getting the Form iFrame Code. iFrame shouldn't create any conflicts which sometimes the caused of the issue with field validations.

    Thanks

  • Profile Image

    Answered by XLAutomation on March 27, 2014 at 08:00 PM

    Yes....it seems to work the first time....

    then after submitting one

    if you try straight away to submit another it goes through without validation

    I will try your suggested iFrame method assuming it works for a Google site

  • Profile Image
    JotForm Support

    Answered by Welvin on March 27, 2014 at 08:33 PM

    So, I have to submit a test data to the form. Will do that but kindly try the iFrame Method first. See if that makes a difference.

    Thanks

  • Profile Image

    Answered by XLAutomation on March 27, 2014 at 08:39 PM

    Hi,

    I have tried to include an iFrame in my Google Site here

    https://sites.google.com/a/xlautomation.com.au/formtesting/iframe-form

    But I cannot get the configuration to display the form.....I am using a Google Site gadget to include the iFrame 

    I have not used an iFrame approach before on the Google Site so I may not be including the correct parameters. In the Gadget it is asking for

    URL to content : For this I am including the URL to the form that is included to your iFrame code from the embed...

    http://form.jotformpro.com/form/40857039685971

    I tried the full details in the iFrame to start with and this did not work either

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

  • Profile Image

    Answered by XLAutomation on March 27, 2014 at 09:22 PM

    Ok....I have been able to find a way of getting the iFrame approach to work...

    And I can see it should work for this case...

    My problem was the Chrome was not allowing the use of iFrame in an https site....once that was disabled I could see the form and it looks like it is working the right way everytime....

    Strange that the other method (the Google Site gadget you have on your site) I have been using is not working for this form ?

  • Profile Image
    JotForm Support

    Answered by Welvin on March 27, 2014 at 10:56 PM

    Standard security protocols include that if your website uses a security certificate or HTTPS address, you must have the contents used the same method. Otherwise, there may be a security issues to the page. So, since Google Sites uses HTTPS address, I would advise using the same to your form. Here's how you can enable SSL to your form: Setting Up a Secure or SSL Form. Again, using secure URL to your form should resolve the issue.

    Let us know if you have any further questions.

    Thanks