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

  • jmaples
    Asked on April 20, 2015 at 2: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.

  • Ben
    Replied on April 20, 2015 at 3: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?

  • jmaples
    Replied on April 20, 2015 at 3: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.

  • Ben
    Replied on April 20, 2015 at 3: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.

  • NJFallen
    Replied on April 20, 2015 at 5: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!!

  • Carina
    Replied on April 20, 2015 at 7: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.