Prevent submit on [enter] key

NickOg 25 Jan, 2012
Hi

I know that there are several jQuery and plain javascript functions out there to prevent a form being submitted after the [enter] key is pressed. Before I go into that, is there some neat Chronoform method of dealing with it? I have made several mistakes by chasing code to do things that Chronoform already does

Nick
GreyHead 25 Jan, 2012
1 Likes
Hi Nick,

There's nothing built-in; this MooTools script from David Walsh should do the trick though (it might need tweaking to work with the current MooTools release).

Bob
NickOg 25 Jan, 2012
Thanks Bob - I will look at that and see how I go. I guess one other option is to have a must fill field to confirm OK to submit.

Nick
This topic is locked and no more replies can be posted.