Marketo Forms - ‘turning off’ form submission when hitting Enter? | Community
Skip to main content
Ayan_Talukder
New Participant
March 31, 2016
Solved

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

  • March 31, 2016
  • 1 reply
  • 1411 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

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.

1 reply

Accepted solution
March 31, 2016

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.