How to add the message on the particular page of portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi,
I created one Announcement for show the info message as in red colour in the employee center portal. it's visible at the top of entire portal. But I want to make it only visible for particular catalog item page.
How can we achieve it, can someone help here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago - last edited 11 hours ago
May you use UI Policy or Catalog Client Script
If your goal is just to show a red banner/info message when a user opens that specific Catalog Item:
- Go to the Catalog Item record.
- Add a Catalog Client Script with onLoad:
function onLoad() {
g_form.addInfoMessage("<span style='color:red;'>This is the warning/info message</span>");
}
- This will show the red message only on that catalog item form, not across the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
not possible OOTB.
But some approach is shared here, try that
ServiceNow Announcement to display on one page of the portal
also this
To display Custom announcement only on one Topic page.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader