Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

I want to add a info message in service portal

savanthsant
Kilo Contributor

i want to add event message in service portal for can you guide me how to add it 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@savanthsant 

your requirement is not clear.

what message and where you want to add and when?

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

yashkamde
Giga Sage

Hello @savanthsant ,

 

where you want to show the message ?

 

1) If you are in widget and need a dynamic pop-up event message, you can pass a string directly to the client controller using :

spUtil.addInfoMessage('Your Message');

 

2) If want to add an event message or broadcast alert in the Service Portal then you can use Announcement to display a banner :

Refer here : How to New message in servicenow portal Banner 

 

If my response helped mark as helpful and accept the solution.