PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form Auto Submit on 'Enter' or Return

  1. Hi Folks,
    I'm having an issue which I hope I can rectify. I've got Gravity Forms installed for a simple online test. It has multiple fields and the problem occurs that when you input data into one field, and press 'Enter' or return to proceed to the next answer field, the form submits.

    How can I set it so that only after pressing 'Submit' does Gravity forms submit the form?

    Thanks a bunch for your help!

    Posted 12 years ago on Monday September 5, 2011 | Permalink
  2. This is largely a usability issue (i.e. the form will normally submit when you press enter, and client side validation should prevent incomplete or invalid entries) and tab should be used to move between fields.

    You can disable form submit by hitting entry with some jQuery if you like. Here's a really good discussion of the issues involved:
    http://stackoverflow.com/questions/895171/prevent-users-from-submitting-form-by-hitting-enter

    If you need help implementing a solution, please post here and we'll give it a shot.

    If you're curious where to put the code (jQuery or JavaScript):
    http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Posted 12 years ago on Tuesday September 6, 2011 | Permalink
  3. Great! Thanks alot for the helpful Links. I'll give a shot implementing this JS and see how it goes. I'll let you know how it works out.

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  4. Please let us know if you need additional help.

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink

This topic has been resolved and has been closed to new replies.