Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    AFAICT, this is the only working answer without any tradeoffs for my use cases. Commented Feb 5, 2023 at 3:55
  • Not putting a submit button would just prevent submission using <enter> key while the submit button is focused. It would not prevent form submission through text input field or textarea. Commented Sep 25, 2023 at 23:45
  • This was the solution I came up with too. IMHO it's the most elegant and worked perfectly. The Enter key is still available to all of the inputs, but doesn't submit the form. Commented Nov 21, 2024 at 2:29