How to limit submit button to only work when clicked and not when Enter/Return is pressed?

  • Profile Image
    Asked 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.

  • Profile Image
    Answered 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 ( ) 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 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: 

    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.


  • Profile Image
    Answered 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 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 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: 

    Thank you for your suggestion

    Let us know if we can assist you further.