Attila7 wrote:Is there a way to prevent the enter key from sending the form? Ideally the cursor should move to the next field when the enter key is pressed.
The Tab key is typically used for that purpose. I think this issue falls into something called "event handling", which is typically managed by the browser. I suspect that the enter key defaults to the "submit" attribute in your form.
There's an article about using the enter key to submit forms here. It may give you some insight on how to break it.
Alternatively, you could implement some sort of error checking in the form processing to make sure it's been completed, or default to a "preview" of the form. You may also be able to employ Javascript to capture the keystroke and nullify it. Keep in mind that some people may not have Javascript enabled.
You may find additional useful information on Google.
You should also keep in mind, though, that many people will expect the enter key to submit the form. If you disable or alter this functionality, your users may be confused. As has been argued elsewhere, it's best to avoid breaking hidden conventions like these. I'd advocate a solution that uses form validation or checking, rather than disabling the enter key. Perhaps a Javascript solution that pops up a confirmation dialog before submitting the form would work too.