How do you display a floating info/error message?

Nick Peters
Tera Guru

We are looking to provide a better experience for our customers on our CMS portal. Using addErrorMessage() or addInfoMessage() is not ideal, as we don't want to scroll customers up to the top of the form just to go back down to submit it; and using showErrorBox() or showFieldMsg() isn't the most practical for our use case.

What we would like to accomplish is to display info and error messages in a similar behavior as we see on the HI Service Portal, or when you change your update set and receive an info message as a pop up. Is this possible in CMS? We are currently on Geneva Patch 10. This would be nice as it doesn't scroll you to a different portion of the screen, yet it's still "in your face" so the customer is aware of it.

1 ACCEPTED SOLUTION
2 REPLIES 2

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Nick



What you can see on HI at the moment is the new Service Portal.


Over there they are not using the old CMS based on Jelly anymore.


About your issue. If you are using the actual new service portal based on bootstrap and angular you can have easily that type of messages.


In fact the new service portal renders lists and forms using bootstrap making available that kind of format you are looking for.



On the other hand if you are using the old type of CMS there is an issue.


The record forms rendered in the CMS are exactly the same available in the back-end.


This means that the system will trigger always the usual messages.



R0b0


Nick Peters
Tera Guru