Display InfoMessage permanently on list header
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2017 09:42 PM
I need to display Info Message permanently on the top portion of list view.
Whenever I access the List from the Application menu, the Info Message will be visible in the list header
Hereby attached an image for further reference...
How to implement this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2017 01:31 AM
I tried this one too...
But it is showing the following error message in List View
Function flushMessages is not allowed in scope x_38340_sd

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2017 07:15 PM
I think I misinterpreted the question.
What are you expecting to happen vs what actually happens?
I'm confused as to what is triggering the message.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2020 06:28 AM
Hi, eswarijk
I want to display a message on a UI List on page load, have you found a solution for this task?
I found and used everything I found on this topic but still have problems when I edit the cells in the list, the message displayed again
I created BR Before/Query
Advanced:
gs.clearMessages();
var index = gs.action.getGlideURI().toString().indexOf('pm_project_list'); // to display only on UI List
if(index != -1){
gs.addErrorMessage('Please, stop all work until the notification disappears.');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2021 09:48 AM
My dirty solution was to use the "List Control" adding the message to the "Omit links condition" (you can add this to the page using the "Form Designer") using this code:
gs.flushMessages();
gs.addInfoMessage("This is the message to display");
false; // or true if that's what you want!
Result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2022 12:13 PM
Any unintended consequences from using this method on lists?