How can i show field style on the Service Portal?

Cecilie Dybwad
Giga Contributor

Hi,

We have defined a set of styles to a field with choices in the backend of our ServiceNow instance. Show a background colour for the values in a list view.

The style looks as follows:

find_real_file.png

IIn the list view it therefore looks like this:

find_real_file.png

However, in our customer facing portal (csm) the widgets showing similar list views do not show the same style. Does any one know how I can add the style of a field to a list view/widget/field shown on a service portal?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

field styles doesn't apply to portal.

The widgets must have some custom code for coloring

Please check that

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

field styles doesn't apply to portal.

The widgets must have some custom code for coloring

Please check that

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

That's unfortunate. Do you have any examples of custom code for coloring? Or references to documentation on this?

 

Hi,

check this out

How to set custom colors to title columns in list page of Service Portal

regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you! I'll start with that and find the right thing for field background colour, which is what I need. 

Regards,
Cecilie