SOLVED

Marketo Forms - ‘turning off’ form submission when hitting Enter?

Go to solution
Ayan_Talukder
Level 5

Marketo Forms - ‘turning off’ form submission when hitting Enter?

Hi everyone,

I wanted to check with the community and see if there is a way to turn off the submission of forms when a user hits Enter?

We're creating a 'Contact Us' form and the field that allows users to freely type their message only allows new breaks in a message by using "Shift + Enter". By the time the user figures out Enter does not create a new line, the form is submitted.

Anyone experience something similar or find a way to bypass this?

Thanks in advance for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Marketo Forms - ‘turning off’ form submission when hitting Enter?

Some Javascript  should do the job :
http://stackoverflow.com/questions/895171/prevent-users-from-submitting-form-by-hitting-enter

Alternatively you could add a rich text field to your form to give them a warning or an instruction to use shift+enter to line break.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Re: Marketo Forms - ‘turning off’ form submission when hitting Enter?

Some Javascript  should do the job :
http://stackoverflow.com/questions/895171/prevent-users-from-submitting-form-by-hitting-enter

Alternatively you could add a rich text field to your form to give them a warning or an instruction to use shift+enter to line break.

View solution in original post