Customized label in catalog item ?

M_B
Kilo Expert

Hello everybody,

I have a litte question about label type for catalog item variables. When I create a label on my training instance (Istanbul) near to variables I have this kind of result :

Image 3.png

In previous version of Servicenow (we were working on Fuji patch 13), label appeared with a background-color, and customers liked it, they don't want to see label without background-color

I was wondering if it's possible to change the background-color or another parameter, but without manipulate DOM or work with bad practice.

I tried to modify stylesheet (on the content management application) but i think that label type has the same classname (html) than fields' labels :

Image 5.png  

Image 7.png

Is there a solution or we have to use this label format only ?

Thank you very much.

Mehdi Batista

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

At this point there is no supported way to color the background. Clever people may come up with a way to do it with DOM manipulation in a client script, but that always runs the risk of not working in future releases. I like the idea of making the background configurable.



I invite you to open an enhancement request! Our product managers DO listen.


Enhancement requests: Tell us how you would improve the ServiceNow product


View solution in original post

4 REPLIES 4

Chuck Tomasi
Tera Patron

At this point there is no supported way to color the background. Clever people may come up with a way to do it with DOM manipulation in a client script, but that always runs the risk of not working in future releases. I like the idea of making the background configurable.



I invite you to open an enhancement request! Our product managers DO listen.


Enhancement requests: Tell us how you would improve the ServiceNow product


Thank you very much for your answer


I have a question- I was trying html in question for label type to give a size and color to it.

It was working at first but after sometime it got broken from all the instance do you have any idea? Is that not supported by servicenow?

below code i tried in Istanbul-

1) <font size="2" color="red">Impact</font>

2) <font size=2 color='black'><b>Environments and Systems:</b></font>

showing as code in catalog-

find_real_file.png

 

That text is not rendered as HTML. If you want special formatting, consider putting your HTML in a UI macro and then adding the macro the form in the appropriate location.