In this guide, we'll explore how to implement the 'On Key Enter Go To Next Item' functionality in Oracle APEX, which allows users to press the Enter key to move the focus to the next item in the form. This can be particularly useful in data entry forms where efficiency and speed are of the essence.
Add the below code in "Execute When Page Load "
$('body').on('keydown', 'input, select, textarea', function(e) { var self = $(this), form = self.parents('form:eq(0)'), focusable, next; if (e.keyCode == 13) { focusable = form.find('input,select,textarea,tabindex').filter(':visible'); next = focusable.eq(focusable.index(this) + 1); if (next.length) { next.focus(); } else { form.submit(); } return false; } });
Leave a comment
You must login or register to add a new comment.