Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disable ENTER when Submitting Form

NikkiFeb 16 2011 — edited Feb 21 2011
Hey,
I am using APEX 3.2 and having trouble not allowing the Enter button to submit a form. I have tried a number of JavaScripts like below but I am not having any success within APEX. Does anyone know how to not allow a Form to submit when the Enter button is clicked? I have a button that will submit the page not the Enter button.
function checkCR(evt) {var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text"))
 {return false;}}document.onkeypress = checkCR;</script>
This post has been answered by paulgall on Feb 18 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2011
Added on Feb 16 2011
13 comments
2,128 views