Make an error message disappear after 5 seconds

Elena Pomana
Tera Guru

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

1 REPLY 1

Musab Rasheed
Tera Sage
Tera Sage

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

Please hit like and mark my response as correct if that helps
Regards,
Musab