Posted on Monday, April 2, 2012 Prevent submit APEX form when pressing enter on text field Category APEX and jQuery APEX text item have option "Submit when Enter pressed" to submit page with item name as request. This attribute seems not work when you have only one text item on page. Even you set this attribute to No, pressing enter will submit page but requests is empty. This is not always good and might be also annoying and miss lead end users how form actually work. To prevent text items submit page when pressing enter, add to page JavaScript Execute when Page Loads: $("input,select").keypress(function(e){ return e.keyCode!==13; });