Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Remove infomessage after specified time

lukasrudaitis
Tera Expert

Dear Community,

I have a form where an infomessage is displayed after submit.

I would like the infomessage to disappear after 10 seconds.

Is there a way to achieve that?

Thanks

2 REPLIES 2

Chuck Tomasi
Tera Patron

Hi Lukas,



OOB, no. If it's a blue info message or red error message, then they must be acknowledge manually by the user clicking them. I thought green system notifications went away after a while, but I haven't checked lately.



https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=r_GlideFormAddInfoMessage_String


Maren R
Tera Contributor

The duration of the green and red ones (info messages and error messages) can be adjusted through the system property "glide.service-portal.notification_timeout.seconds" (addMessage popup is inconsistently disappearing or staying up in the service portal - Support and Tr...).