⏱️ No More Clicking! Auto Dismiss Notifications in Oracle APEX
🚩Introduction
In Oracle APEX applications, alert messages like success, error, or warning notifications help users understand what is happening in the system. But sometimes these messages stay on the screen until the user closes them, which can interrupt their work.
To improve this, we can use JavaScript to automatically hide the messages after a few seconds. This allows users to read the message and continue working without extra clicks, making the application cleaner and easier to use.
📑 Why This Approach Is Needed
In Oracle APEX applications, alert messages are used to show success, error, or warning updates to users. But if these messages stay on the screen until manually closed, they can slow down the user and make the page look messy.
Using automatic dismissal with JavaScript is helpful when:
- Users should see messages without needing to close them manually
The screen needs to stay clean and less crowded
Quick actions like form submissions need smooth feedback
Users should not be interrupted while working
The application should feel faster and more user-friendly
- A simple and modern user experience is required
This approach makes the application easier to use, saves time, and improves the overall user experience by handling alert messages in a smooth and automatic way.
👉 Use Case: Auto Dismissal of Alert Notifications Using JavaScript
Step 1:
Step 2:
//Global page (0) -> Page Load Dynamic Action
apex.message.setThemeHooks({ beforeShow: function(pMsgType, pElement$) { setTimeout(function() { $('.t-Alert').fadeOut('slow'); }, 5000); // this you can replace with your time ( in seconds) } }); $(document).ready(function () { setTimeout(function () { $('.t-Alert--success').fadeOut('slow'); }, 5000); // this you can replace with your time ( in seconds) });




Comments
Post a Comment