We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Display Multiple Announcements On Service Portal Without Collapse Button

Ayshee Chattopa
Giga Expert

Hi All,

I want to display multiple announcements on the Service Portal simultaneously without the expand/collapse button.

find_real_file.png

Currently one needs to click on the expand /collapse button to view multiple announcements, as below :

find_real_file.png

Can anyone tell me how to achieve this?

Thank you,

Ayshee Chattopadhyay

1 ACCEPTED SOLUTION

Jags5
Mega Sage

If you want to display the announcement without giving the option to use to dismiss it, you can achieve this by.

find_real_file.png

Please mark reply as Helpful/Correct, if applicable. Thanks!

View solution in original post

9 REPLIES 9

HI Ayshee,

Can you share the widget which you are using for announcements, because the screenshot which you have shared looks like little different then the widget i told to change.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Sure Mohit. Here is the 'My Announcements' widget that I am using :

find_real_file.png

This is the Server Script :

find_real_file.png

find_real_file.png

Thank you,

Ayshee Chattopadhyay

johnvpr
ServiceNow Employee

This can be done by adding a new js dependency on the  Header Menu widget.

$(document).ready(function() {

var context = angular.element('.sp-announcement-root').scope();
if (context && context.c && context.c.toggleShowAll)
context.c.toggleShowAll();
});

 

find_real_file.png

 

 

 

 

 

find_real_file.png

 

 

 

find_real_file.png

 

 

find_real_file.pngfind_real_file.pngfind_real_file.png

 

 

 

 

 

Not applicable

This worked for me.

Hi,

Can this also be used for the widget based announcements as well or just the banner based ones?