Make an error message disappear after 5 seconds

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2022 02:39 AM
Hello,
I have an after update BR script that inserts a record in a table or updates an existing record.
For both scenarios, I have two different but similar messages that are in the BR. The problem is that the message is displayed and it doesn't disappear so the user has to click the X button to get rid of it.
I've searched on community if there is a way to make the message disappear after 5 seconds server side but it seems it is not possible (only with client side logic).
What is the best approach for this situation?
Thank you,
Elena

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2022 02:52 AM
Hello,
No, you have to use client script/UI policy to clear those alerts from BR after few seconds, you can take one example here
https://community.servicenow.com/community?id=community_question&sys_id=ea22b012dbd9bfc8f7fca851ca9619e9
Please hit like and mark my response as correct if that helps
Regards
Regards,
Musab