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 to limit submit button to only work when clicked and not when Enter/Return is pressed?

    Asked by jmaples on April 20, 2015 at 02:33 PM

    I don't want to send the form based on the user hitting the enter key.  I only want to send the form when clicking the button with the mouse.  I can't figure out where the setting for that is.

    Page URL:
    http://www.jotformpro.com/jmaples/LpOrderForm

    Enter key send the form Return Enter submit form
  • Profile Image

    Answered by Ben on April 20, 2015 at 03:12 PM

    That is how it should be, the user should not be able to post the data (submit form) by pressing enter while in some field.

    I presume that you have the form embedded using source code embed code which would explain why this happens.

    Could you please tell us if the issue can be recreated on your page only or on your jotform and if on your jotform ( http://www.jotformpro.com/jmaples/LpOrderForm ) to let us know if there is a specific field where this should be done since it does not allow me to do that unless all the fields are filled out including captcha.

    Or do you want it to have to only accept submission on click and not on enter, even if all of the values are entered?

  • Profile Image

    Answered by jmaples on April 20, 2015 at 03:29 PM

    I do not have the form embedded into a website.  The user will use it straight from the web link:  http://www.jotformpro.com/jmaples/LpOrderForm 

    Temporarily, I have a Captcha on the form, which prevents the "Enter" key from sending the form until the Captcha is completed.

    I do not desire to have Captcha on this form, however, when I don't have Captcha, if the user hits "Enter" before completed the form, it sends the form.  

    There are several non-required fields on the form, so not every field will have something in it.  

    All I want is for the "Enter" key NOT to send the form, at any point while the form is being completed.  I want the user to be forced to click "Submit" only to send the form, that way the form is not sent pre-maturely, causing the user to start over with their order.

    Thanks.

  • Profile Image

    Answered by Ben on April 20, 2015 at 03:43 PM

    OK, I understand.

    I believe that this was not possible so far, so I will raise this to our developers for inspection.

    As soon as there are any updates in regards to this, we will get back to you through this thread.

  • Profile Image

    Answered by msimpy on April 20, 2015 at 05:21 PM

    Why not put a check box as a required field right above submit button and instruct the user to click box below when your order is complete then click submit? Just a thought!!

  • Profile Image

    Answered by Carina on April 20, 2015 at 07:05 PM

    If you use the source code of the form then you can add this code to prevent enter key from submitting the form:

    http://www.jotform.com/answers/355370 

    @msimpy 
    Thank you for your suggestion

    Let us know if we can assist you further.