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
Giga Contributor

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

1 ACCEPTED SOLUTION

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.

View solution in original post

6 REPLIES 6

Aditya_hublikar
Giga Sage

Hello @savanthsant ,

 

When you have to show message ? after certain action performed or onload event or just banner announcement ?

 

For widget level  :

You can use :  spUtil.addInfoMessage('This is an info message!'); 

 For global announcement :

You can refer this :https://www.servicenow.com/docs/r/xanadu/platform-user-interface/service-portal/announcements.html 

Deėpak Sharma
Mega Sage

hi @savanthsant 

Could you please explain your requirement, as it is not clear for me like what exactly you need to acheive.

Happy to help! If this resolved your issue, kindly mark it as the correct answer ✅ and Helpful and close the thread 🔒 so others can benefit too.

Warm Regards,

Deepak Sharma

Community Rising Star 2025