Question about Announcements widget

JackieZhang
Tera Contributor

Does anyone know where is code for the pop message on the top for announcements ? I want to add the line break to it.

 

JackieZhang_0-1753860098642.png

 

9 REPLIES 9

Hi @JackieZhang 

 

If it is a portal then 

 

DrAtulGLNG_0-1753868453230.png

 

*************************************************************************************************************
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]

****************************************************************************************************************

actually I already change the code for OOTB announcements widget and let it can accept line break.  But the pop message on the top of portal, I can't find where is the code is?

 

  

@JackieZhang 

please navigate to this (change your URL):

https://yourinstance.service-now.com/announcement_list.do?sysparm_query=active%3Dtrue&sysparm_view= 

 

And review whether there are any records, and if so you can deactivate it or adjust start/end date to get rid of it...

 

EDIT: eventually check for onLoad catalog client script showing the text by addInfoMessage(); 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @JackieZhang 

As I mentioned earlier, line breaks are not supported in the portal-level announcement banner as you highlighted.
All the text will appear in a single line, and any line wrapping will depend on the browser screen size, not actual line break formatting.

*************************************************************************************************************
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]

****************************************************************************************************************

GlideFather
Tera Patron

Hi @JackieZhang 

 

for announcements, type as following:

KamilT_0-1753868308255.png

 

 

  • UX Banner Announcement
    • Backend
  • Service Portal > Announcement
    • Portal / EC

 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */