If the HTML-type field is set to readonly (at dictionary level) and its value contains <body> tag , then the style of the <body> tag gets applied to the form's <body> tag 

Steps to Reproduce

1- Create/update an HTML-type field as readonly. i.e.
2- Pick an existing record or create one. i.e. KB0000031
3- Go to System Definition > Scripts - Background. Modify accordingly and run the script below ;
var gr = new GlideRecord('kb_knowledge');
gr.text = '<!DOCTYPE html> <body style=\"background-color:rgb(69, 84, 100)\"> This is a text </body> ';
4- Go to the updated/created record.

Actual behavior: Form background color can be seen as rgb(69, 84, 100)
Expected behavior: Form background color is displayed as system-default. HTML-type field can be seen as rgb(69, 84, 100)


Remove the readonly setting from the dictionary level. Add a UI Policy, in which the necessary field will be set as readonly.

Related Problem: PRB1301812

Seen In

Madrid Patch 4

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:38:15