Different types of Info messages

Marcus Roworth
Tera Contributor

Since moving to Tokyo (Next Experience) I have noticed a slight change in info messages (gs.addInfoMessage()).

 

I now see two styles:

  • Pop-up messages (appear at the top of the screen on a layer in front of the form)
  • Regular messages (appear at the top of the form in the same layer and push the rest of the form content down)

The pop-up messages have the ability to cover the form content (if there are too many) and also gives the ability to 'Show All'.

 

I am wondering how to trigger the pop-up messages? If I create a Business Rule, Client Script etc. that adds an info message, it always defaults to the 'regular' messages.

 

To clarify, I'm not talking about alerts (pop-ups that prevent the user from doing anything until they click ok/cancel).

3 REPLIES 3

AnubhavRitolia
Mega Sage

Hi @Marcus Roworth 

 

Can you elaborate little more on how both are difference and what code are you trying in your script for info message?

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Please see the two images:

Regular info messages:

infomess1.PNG

Pop-up info message (with the regular message behind)

infomess2.PNG

The reason I asked was because I couldn't see anything in the scripting that was different. They are just .addInfoMessage("example text");

 

I thought if someone knew about the 'pop-up' style, then it would give me something to help locate why one 'pops-up' and the other appears at the top of the form.

I think I found the answer to this myself. They are Next-Experience 'alerts'. Further info can be found in this article: