The form is submitted everytime the enter button is hit. How do you fix this?

  • Profile Image
    division9
    Asked on July 19, 2011 at 03:26 PM

    When a form is being filled out, if instead of tabbing through the form, the enter button is hit, the form is submitted even if it is not completely filled out.

  • Profile Image
    allanftd
    Answered on July 20, 2011 at 12:37 AM

    Hi division9,

    I would suggest that you do two things:

    1. Make additional fields Required. Important fields such as Name and Address should be mandatory fields so that the form won;t be submitted without filling out these fields.

    2. Add a Captcha field before the Submit button to safeguard you against programs and bots that spam you with unwanted form submissions. This will ensure that a human being is filling out your form.

    We hope you find these tips helpful. Thank you for using JotForm!

    JOTFORM SUPPORT

  • Profile Image
    division9
    Answered on July 20, 2011 at 10:11 AM

    I have made the changes you recommended, but if the enter button is hit anywhere on the page after the required fields are filled in, it will still submit the pages completed up to that point of the form - even though the remaining pages that have required fields are not filled in.

  • Profile Image
    NeilVicente
    Answered on July 20, 2011 at 11:13 AM

    Hi,

    Unfortunately, that is how html forms work. Pressing enter on the keyboard always submits an html form. I know that you're worried as computer newbies always make this mistake of pressing the Enter key after typing in a field. I should know, I used to commit the same mistake many years ago, when I was a beginner.

    A workaround I suggest is to set all of your form fields as required, or at least set a field placed at the end of the form as required. That way, no matter how many times they press enter, the form will not submit.

    Hope this suggestion was of any help. Let us know if you have other queries or concerns. Thanks!


    Neil

  • Profile Image
    mytntboom
    Answered on January 10, 2012 at 01:42 AM

    is there a way to make the submit button a requirement?

  • Profile Image
    abajan
    Answered on January 10, 2012 at 02:08 AM

    Perhaps we had better keep the conversation in the related thread.