Ticker

6/recent/ticker-posts

How to Hide Success Message After Few Seconds in Oracle APEX - Javainhand Tutorial


Hello Friends, Welcome to Javainhand.com in this post we are going to tell you about the How to Hide Success Message After Few Seconds in Oracle APEX. As we know that there is no inbuilt functionality for oracle apex auto-hide success message but after reading this post you can easily hide the success message after a few seconds in oracle apex. So Let's Start our Topic

For this tutorial, We will use popular javascript library Jquery to 

1.fadeOut

With the help of the below steps, you can easily achieve the Hide Success Message After Few Seconds in Oracle APEX.


How to Hide Success Message After Few Seconds in Oracle APEX

Let's take a scenario, in Oracle APEX write a simple process and call that process on the button press. after that pass a message which you want to display in a success message. The Below screenshot will help you out.




As you can see in the above screenshot I am creating a PL/SQL process with the null statement and write a success message in the success message box section.

After the submit button press the success message display but if you do not click on the cross(X) icon then it will not hide.





Now We use the fadeOut method for auto hide success messages after a few seconds in oracle apex.

Create a Page Load Dynamic Action and create a true action to execute javascript code and use the below javascript code.


setTimeout(function() {
    $('#APEX_SUCCESS_MESSAGE').fadeOut('fast');
}, 3000);



Above code and screenshot use for hiding the success message after 3 seconds. Note that the 3000 figure that we passed to fadeOut is 3 Seconds in Milliseconds i.e if you want to hide for 5 seconds then, you can use 5000 instead of 3000.


I think this post will helpful for you.

Don't forget Like, Share & Subscribe My Youtube channel Link in Below


Our Social Link:-

Link (Youtube) :
Link (Facebook Group )
https://www.facebook.com/groups/145218296146795/?ref=bookmarks
Link (Facebook Page) 
https://www.facebook.com/javainhand2017/

Post a comment

0 Comments