gs.addInfoMessage() never disappears

hrng
Giga Expert

Hi All,

I've had some feedback from users regarding the gs.addInfoMessage() banners - at the moment, they don't disappear until you click the x. If you don't close them manually, they stick around seemingly forever.

I know that you can remove these with flushMessages(), however I'm more interested in setting some kind of fade time for them. Having them disappear after about 10 seconds would be perfect.

Does anyone know if this is possible?

Thanks!

Dave

1 ACCEPTED SOLUTION

darlawolf
Giga Expert

Try checking http://www.servicenowguru.com/scripting/business-rules-scripting/display-messages-ui-notification/


ServiceNow Guru mentions


addInfoMessage() method provided by the GlideSystem (server) and GlideForm (client) classes. In return, it gives you some capabilities that aren't otherwise available. These include options to set fade-in and fade-out effects and the ability to make the notification persistent or to close it after a user-specified interval.


Hope this helps.


View solution in original post

3 REPLIES 3

darlawolf
Giga Expert

Try checking http://www.servicenowguru.com/scripting/business-rules-scripting/display-messages-ui-notification/


ServiceNow Guru mentions


addInfoMessage() method provided by the GlideSystem (server) and GlideForm (client) classes. In return, it gives you some capabilities that aren't otherwise available. These include options to set fade-in and fade-out effects and the ability to make the notification persistent or to close it after a user-specified interval.


Hope this helps.


That's perfect, thanks!


Community Alums
Not applicable

Hi,
Check this "glide.service-portal.notification_timeout.seconds" property. By default it is set to 5 seconds but if its sticky then this must have been changed to 0 in your instance.

If this helps, mark my answer as useful.

 

Thanks,

Vishal