How to add the message on the particular page of portal

PRAGHATIESH S
Tera Expert

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

3 REPLIES 3

Rafael Batistot
Tera Sage

Hi @PRAGHATIESH S 

 

 

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.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@PRAGHATIESH S 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@PRAGHATIESH S 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader