Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add close note in bold red text color

nrd5830
Mega Guru

Hi everyone,

I am trying to add a close note i.e inside additional comments or work notes in bold red text automatically whenever a RITM is closed.

Say example I would like to add the below text inside the comments, IMPORTANT should be in bold red text

IMPORTANT:

TextText.....

Any help would be appreciated.

1 ACCEPTED SOLUTION

String fields are plain texts and it does not support HTML. You will need to use this within journal fields.

View solution in original post

3 REPLIES 3

Alikutty A
Tera Sage

Hi,

To color a text, you can use the code tag and add your text in HTML. You need to write a BR when your RITMis closed and add your required text within code tags.

For eg: Try saving the following text in the work notes and see how the color is added to text

[code]<h3 style="color:red">This is a red color text</h3>This is normal.[/code]

Also refer this blog for more information: https://community.servicenow.com/community?id=community_blog&sys_id=4d9ceae1dbd0dbc01dcaf3231f9619e1...

Hi Alikutty,

 

I have tried and it works for the journal field. Can you also tell me how to do I populate the same in a string field i.e short description? Should I use the same method to populate the string field?

How to execute HTML source code in a business rule to populate a string or journal field?

 

Thanks,

Nitish 

 

String fields are plain texts and it does not support HTML. You will need to use this within journal fields.