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

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.

Thanks for your information it was really helpfull 

prerna_sh
Kilo Patron

Hi @savanthsant ,

 

What exactly are you trying to achieve? Could you explain the requirement in a little more detail?

If you can share where you want the message to appear?

for example, after clicking a button, submitting a form, or triggering an event/Business Rule, it would be easier to suggest the right Service Portal configuration.

 

-------------------------------------------------------------------------------------------------------------------------------------------
If my response solves your query, please mark it as helpful by selecting accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna