Skip to main content
Known Participant
June 18, 2010
Answered

How can I prevent forms from being prematurely submitted when users click on the "Enter" key?

  • June 18, 2010
  • 2 replies
  • 681 views

Is there any way that I can prevent Dreamweaver CF submission forms from being prematurely submitted by the user when he/she clicks on the "Enter" key before they have completed the form?  I need the users to finish form and click on the "Submit" key.  I have the "Submit" key action configured as "submit form"

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer

You can use javascript to validate the form without page reload but users that have js disabled will still be able to send the form. In which case use server side form validation. Google search for terms metioned will lead you to solutions.

2 replies

Correct answer
June 18, 2010

You can use javascript to validate the form without page reload but users that have js disabled will still be able to send the form. In which case use server side form validation. Google search for terms metioned will lead you to solutions.

Known Participant
June 18, 2010

Thank you!

Found a solution through Google.