- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2021 09:28 PM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2021 08:26 PM
String fields are plain texts and it does not support HTML. You will need to use this within journal fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2021 09:56 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2021 11:57 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2021 08:26 PM
String fields are plain texts and it does not support HTML. You will need to use this within journal fields.