I want to dismiss the info message after 5 seconds

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 04:31 AM
HR Agent Workspace
I have a button Send Email which on clicking processes the email and it shows a message "Email Sent"
My requirement is to make this message dismiss after 5 seconds, how to implement the same.
As per my understanding this looks like OOB feature, so how can one make it dismiss. Please help me on the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 04:44 AM
Hi @Deepika Mishra ,
Please check the below references:
Clear error message (gs.addErrorMessage();) after X seconds
Make an warning message disappear after 5 seconds
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 05:15 AM - edited 07-31-2024 05:17 AM
Hi @Deepika Mishra ,
you can add the below line after your g_form.addinfoMessage();
window.setTimeout(g_form.clearMessages, 5000); // here 5000 indicates 5000 milliseconds...
I hope this helps....
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 10:30 PM
Hey , did we got the answer .
Please Answer.