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

    How do I make sure that the only way a form is submitted is by clicking the "SUBMIT" button?

    Asked by gchris2 on February 02, 2015 at 12:10 PM

    Currently any time I hit the "enter" key while filling out the form, it submits.

    filling out the form
  • Profile Image
    JotForm Support

    Answered by Kiran on February 02, 2015 at 12:57 PM

    To prevent the form to be submitted by pressing Enter key, you may consider adding required status to the fields on your JotForm.

    When the form is tried to submit with blank fields, it displays an error for the fields where they were set as required.

    Alternatively, you may also consider getting the source code of the from to embed on your webpage by adding the following script to header section i.e., in between <head></head> tags.

    <script language=javascript type=text/javascript>

    <!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development -->

    function stopRKey(evt) {

       var evt = (evt) ? evt : ((event) ? event : null);

       var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);

       if ((evt.keyCode == 13) && (node.type=="text")) {return false;}

    }

    document.onkeypress = stopRKey; 

    </script>

    Hope this information helps. Please let us know if you need any further assistance.

    Thanks!