- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 09:18 AM
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:
Banner:
)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 09:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 10:55 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 11:26 AM
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.