Why does the enter key submit the form?

  • Frank Spears
    Answered on May 06, 2017 03:09 PM

    For an easy to use software the fix is not in keeping with the ease of use. The form I spent the morning to create looks great but is useless with the issue of the return key. I am unable to work through the complexity of the fix Time wasted!

  • Jim JotForm Support Manager
    Answered on May 06, 2017 04:44 PM

    We failed to understand what the main issue is about. You mentioned "an issue of the return key" - Did you mean you don't want forms to be submitted when someone presses the enter/return key?

    If so, I'm afraid forms were designed that way (regardless if it's built in Jotform or not). This is something referred to as Implicit Submission as described on HTML5 specifications.

    This is important to accessibility, assistive technologies and impaired users that cannot use a mouse at all. There are pages on the Web that are only usable if there is a way to implicitly submit forms, so user-agents (browsers) are strongly encouraged to support this.

    If you really want to suppress this default behavior of forms, the only way around it with is to do it outside JotForm. Just get your form's Full Source Code, deploy it on your website, and use Javascript to prevent the Enter key from submitting the form.

    Complete guide: How-to-get-the-Full-Source-Code-of-your-Form 

    I found a really good read about this topic on this post in case you're interested to know why it was designed that way. At the latter part of that post will be alternatives on suppressing it (especially the Explicit Prevention part where they gave an example JS code snippet to prevent it).