The CreatorCon Call for Content is officially open! Get started here.

Information Message at the top of a page

MarkK3
Tera Contributor

Hi all,

 

I'd like to add an information message to the top of my "Change" form for our ITIL users who raise Changes. I know I can use the following code to display the blue banner with a message:

g_form.addInfoMessage('test'); 

 but its the formatting I'm trying to achieve with lists, bullet points etc. Ideally I'd like to add something very similar to the info message that shows at the top of the "UI Policy" form (see attached). Can somebody point me in the right direction please?

 

Thanks,

Mark

 

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MarkK3 

 

https://www.servicenow.com/community/developer-forum/is-it-possible-to-add-a-bullet-list-to-a-multi-...

https://www.servicenow.com/community/developer-forum/how-to-insert-description-information-with-bull...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MarkK3 

 

https://www.servicenow.com/community/developer-forum/is-it-possible-to-add-a-bullet-list-to-a-multi-...

https://www.servicenow.com/community/developer-forum/how-to-insert-description-information-with-bull...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

SanjivMeher
Kilo Patron
Kilo Patron

You can use Annotations for the same. For ex, in the UI policy Form Layout there are annotations used where you can add HTML content as well as call gs.getMessage() and define the message in the System UI->Messages table

 

SanjivMeher_0-1702069298851.png

 

Message record for the above text->

SanjivMeher_1-1702069435316.png

 

 


Please mark this response as correct or helpful if it assisted you with your question.

Experience 🙂 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

😉


Please mark this response as correct or helpful if it assisted you with your question.