Show/Hide more than 2 alerts

GanzertM
Tera Contributor

Hey Community, 

 

I got a very specific question. Pop-Up Boxes in the ServiceNow are shown or hidden based on their count. If for example a "gs.addErrorMessage()" is triggered it will be shown (First Picture). But if more then two error are triggered, they are shown in a hidden manor (Second Picture). Is this changable? How? Can I set a limit? Where is this defined?

1 REPLY 1

nv147
Tera Expert

After looking at this, I found the glide.service-portal.notification.threshold system property in my PDI, which seems to set the max number that will display on the screen before grouping. Description for this reads "Indicates number of notifications at which the clear all button should be displayed."

 

I'm not too sure it'll work in your workspace though, or if there's a specific system property for it, or how that works, but this should help!

 

To add, the docs for addInfoMessage on GlideForm states "This message appears for approximately four seconds and then disappears. This timeout is not configurable at this time.", however I found this system property:

 

glide.service-portal.notification_timeout.seconds - "Duration (in seconds) info and error messages persist in the Service Portal before auto-dismissal. Default 5, a value of zero disables auto-dismissal."

 

Again, you'd have to see if that applies to a workspace or not