The CreatorCon Call for Content is officially open! Get started here.

Formating Catalog Label Variables

tnelson7
Kilo Contributor

Currently I am building a form that due to the need for text blocks where I can provide information within the item form itself. Is it possible to change the formating (i.e. font size, font color or label color) on label variables within the Service Catalog? When they are created now they are all the same font size color and the label block itself gets the color of the instance banner.

8 REPLIES 8

jim pisello
Giga Expert

You can apply some formatting to label variables using standard HTML tags (bold, italic, underline, font size/color/style, etc). Just add the inline tags to the Question field like this:


<font size=4 color='green'><i>This is large green italicised label text</i></font>


You could probably also use inline css though I haven't tried it. Not sure if the background color on the label block can be changed on the fly. You also need to keep the character limit for the Question field in mind when you're applying formatting tags.

BTW, anchor tags work in label questions too. We've used label variables in some of our SC items to allow users to link to other pages, KB articles, external sites, etc.

Jim


tnelson7
Kilo Contributor

This was exactly what I was wanting to do. I completely forgot you could use html in there. Thanks.


Mlombardo
Kilo Expert

Also, system property 'glide.ui.escape_text' must be set to false


How can we chnange the color of the label type variable?