Steps to duplicate:

  1. Create a new Drupal install
  2. Create a variety of fields for any content type, such as a taxonomy autocomplete field
  3. Go to the add form for that content type, type something in a field (such as the title or an autocomplete field), and hit the enter key

Expected operation: nothing should happen; the form is not complete, and the user is not focused on the save button

Actual operation: the entire form is submitted. This could cause incomplete content to be submitted, or the users may get an error when required fields are not filled in. Some users habitually hit the enter key after entering any content in a field, and they run into this issue frequently.

Currently, I am using a custom module to disable the enter key via javascript.

Comments

swentel’s picture