Announcement on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 01:43 AM
Hi ServiceNow family,
We have a one requirement where we need to attach one announcement on portal but only on one page of portal not on all pages of portal, so can you please guide how we can do this.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 01:49 AM
Hi @Soni Rahul
OOTB, it will be for all pages OOTB.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 01:49 AM
Hi @Soni Rahul
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.