How to make bold letter for label field in Service Portal in ServiceNow

Vineela1
Tera Contributor

Hi Team,

Please suggest how to make "label" type text bold in Service Portal.

1) I tried with getLabel('field') , getControl('field') client scripts at catalog item. But changes are not reflecting on Service Portal.

2) Disabled "glide ui escape_text" property and added html tags. But still not working on the service portal.

 

changes visible on ServiceNow Instance but it is not reflecting in Service Portal . Please suggest inputs on this issue.

 

Thanks and Regards,

Vineela 

18 REPLIES 18

Late to the party  here, but this is exactly what I needed.  Thank you!!

Mark Guldhammer
Giga Guru

Hi

 

Could you explain further about the html tags you are adding? Do they show up when you inspect the html in service portal?

 

I think you need to overwrite the CSS, to change the style of the label.

Hi Mark,

 

Yes sure. 

 

<p><br /></p>

<style>

{

font-weight: bold;

}

</style>

 

added this code under label source code. But it is not reflecting on Service Portal. Code attached for reference. Please suggest on this.

 

Regards,

Vineela

Hi

 

Thanks! Well I don't think you will get that working.

 

You could also just add page specific CSS.

Here I have something similar:

Screenshot 2022-10-21 155415.png

 

This fields ID is "select_database".

If I then go to Service Portal Pages, then find sc_cat_item - which is used to display catalog items. I can just add the following Page Specific CSS:

 

#select_database span {
 font-weight:bold;
}

 

 

Its not the most sexy way, but it works.

Screenshot 2022-10-21 160008.png

 

Hi Mark,

Thanks for the information. I am able to find my ID "requestor_information" label under sc_cat_item portal page. Please suggest where can I add CSS "font-weight:bold" code under Service Portal sc_cat_item page. Image attached for reference.

 

Please suggest inputs on this.

 

Regards,

Vineela