How to render HTML content in journal fields ?
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-01-2025 04:16 AM
Please share how we can render HTML content in journal fields and show it in Activities tab without enabling system property - glide.ui.security.allow_codetag as it imposes a risk on instance. We are trying to replicate a chat window kind of thing in Activities tab where queries are received from external system which can be inline images, tables, hyperlinks, etc. There queries are then referred by our users to respond back.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-01-2025 11:40 AM
Customizing journal fields to render HTML isn’t best practice in ServiceNow due to security risks, maintenance challenges, and breaking native functionality. Use supported alternatives like custom tables or Service Portal widgets instead.
Risks:
Future developers may not understand the custom logic.
Harder to maintain across upgrades or platform changes.
Increases the technical debt of your ServiceNow implementation
Thanks,
Vignesh 
"If this solution resolves your issue, kindly mark it as correct."
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-02-2025 05:55 AM
Out-of-box the glide.ui.security.allow_codetag (allows HTML) is enabled (set to true) and it's the property glide.ui.security.codetag.allow_script (allows script HTML script tags) that is disabled. However, your organization may have chosen to disable glide.ui.security.allow_codetag.
If that is the case a simple solution could be to use an HTML field that is set to read only. The HTML in ServiceNow already strips away <script> tags and sanitizes the HTML.
With that type of field you could design a make shift chat.
I am assuming the external system is an integration supplying responses to the queries.
The following below is a very primitive proof of concept where an HTML field is used instead of the Activity (because if codetag is off it won't render html) :
