Disable form submit by pressing enter

Hello Softr Community,

I’m working on a project, and I’ve created a contact form. Everything is working smoothly, but there’s one thing I’d like to change: I want to disable the form submission when users press the “Enter” key.

Ideally, I’d like to require users to click a dedicated submit button rather than allowing them to submit the form by simply hitting “Enter” on their keyboard. This can help prevent accidental submissions and improve the user experience on my website.

Does anyone know how I can achieve this on Softr? Are there any specific settings or custom code I need to implement? Any guidance or advice would be greatly appreciated.

Thank you in advance for your help!