How to make bold letter for label field in Service Portal in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 10:30 AM
Late to the party here, but this is exactly what I needed. Thank you!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 07:01 AM - edited ‎10-21-2022 07:03 AM
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:
 
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.
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 10:19 AM
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