Disable pressing enter to send a form

Hello guys,

I don’t know how to desactivate pressing enter instead of pressing the button to send a form.
As I let the possibility to send a message, people press enter to create paragraphs but send their message instead :sweat_smile:

Thank you for your help.

Link of my website : Webflow - PEPINA

Perhaps something like this might help:

$(document).ready(function() {
    if(event.keyCode == 13) {
      return false;

Thank you Marko !

I should add the code directly on the Form page or in the frond end of Webflow please ?

In Before tag section on page settings

1 Like