System properties -> glide.ui.activity_stream.style.* (add custom style)

Morten Johansen
Giga Contributor

Hi all,

Has anyone had success styling a custom field added to a activity formatter on a form?

Visual example below:
find_real_file.png

OOB you have the two properties "glide.ui.activity_stream.style.comments" and "glide.ui.activity_stream.style.work_notes" you can edit in system properties.

I have a field called "log_history" in a scoped app where I would like to add a custom colour instead of the default when displayed on the activity formatter. Tried adding the property with the same syntax as the two above mentioned properties, but with no effect.

4 REPLIES 4

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi Morten,

you can configure the Style of your custom Journal field, from the record form, right click on the field name > Configure Styles, then click on New and add your custom style for example:

background-color:red;

find_real_file.png

This is the result:

find_real_file.png

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Did this solve your question? Or do we need to follow-up on this?

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

jfinn
Kilo Expert

Hi Morten,

Curious to see if you ever got this to work as I am currently trying the same thing.

I have created a custom journal field on my form as well and while I can change the colour of the field as visible to the analysts by doing as recommended in the post by Alberto below, I cannot seem to get the styling to apply to the updates when viewed in the service portal.

Does anyone know if it is possible to build a custom system property to achieve this similar to the two built into the system, ie:

  • glide.ui.activity_stream.style.work_notes
  • glide.ui.activity_stream.style.comments

Any attempt I have made to copy the above format but replace it with my own field name at the end has failed and I am unable to colour code the bars of my custom field as per the original post above.

Thanks all.

James

J Q H N
Tera Contributor

Hi there,

for anyone who is interested to also change the styling of the workspace: Configure journal field tile icons and colors in Configurable Workspace. There is a limited number of attributes in the dictionary for field styles:

Workspace activity stream background
Workspace activity stream tile icon
Workspace activity stream icon color

See: https://www.servicenow.com/docs/csh?topicname=config-journal-field-icons-and-colors.html&version=lat...