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

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!

Hi Jags,

I did try with the 'User cannot dismiss' option but the collapse/expand button is still there.

What I want is to display all the announcements simultaneously, without the collapse/expand button.

find_real_file.png

Thank you,

Ayshee Chattopadhyay

Mohit Kaushik
Mega Sage
Mega Sage

Hi Ayshee,

You need to do changes in announcement widget's HTML part to achieve this. Change the highlighted code with the lines mention below:

find_real_file.png

 

<span class="glyphicon glyphicon-menu-down" aria-hidden="false" ng-click="c.toggleDetails(a.expanded)" aria-label="{{'Show details'}}" tabindex="0"></span>

Try this and let me know, if it works.

Please mark this answer correct if it resolved the query and mark it helpful too if it helped you at all.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Hi Mohit,

I did try your piece of code in the HTML part of the Announcement widgets as below :

find_real_file.png

But it still did not work for me. Please help me understand if I ma doing something incorrect.

Thank you,

Ayshee Chattopadhyay