ServiceNow Announcement to display on one page of the portal

Miroslaw M
Tera Contributor

Hi all,

 

I created an announcement banner and widget on one of my portals, however the functionality with limiting the announcement banner to display only on one of the pages of my portal seems to be lacking. Was anyone able to find a way to display the banner on only one page in a portal? (For now i just added the widget to the one page and not others but this does not seem as clean as the banner

 

Widget:

Screen Shot 2023-07-26 at 9.16.12 AM.png

 

Banner:

Screen Shot 2023-07-26 at 9.17.04 AM.png

  

1 ACCEPTED SOLUTION

Tushar
Kilo Sage
Kilo Sage

Hi there,

 

In ServiceNow, there is no out-of-the-box feature to limit an announcement banner widget to display only on one specific page of a portal. By default, widgets are meant to be added to a portal globally, meaning they will appear on all pages within that portal.

However, there you can try below workaround -

 Create a custom widget that displays the announcement banner and includes a condition in the widget's client-side JavaScript to check the current page URL. If the current page matches the specific page where you want the banner to appear, then display the banner; otherwise, hide it.

 

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Regards,
Tushar

View solution in original post

6 REPLIES 6

Hi Jim, as stated in the question the reason for the banner instead of the widget is because the banner looks a lot cleaner. I agree with you if there is no such OOB functionality i will not spend my time customizing. 

Hey Jim yes i agree what i have in place should work. If there was such an OOB functionality to display the banner per one page only it would have been a nice to have.