How to make catalog item variable bold and increase the font size

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2021 10:44 PM
We have one record producer and we would like to increase the font size of the variable and make it bold.
I came across couple of posts and we could use property 'glide.ui.escape_text to 'false' to achieve.
Is there any other option that I can follow to meet the requirement?
any help on this would be much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2021 10:24 PM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2021 11:01 PM
goto sp_page table and search for your page.
OOB will be sc_cat_item page.
Goto css and update this code
#label_name> div > label
{
font-weight:bold;
}
it will look like this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2021 09:55 PM
Hi Pranesh,
Thanks for the input.
It works fine but it is applying the same for other catalog item where same variable name is available.
I would like to make all the variables available in one particular catalog item to be bold.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2021 03:43 AM
there is a workaround if want to use it only one catalog item but it requires DOM.
You have to create an onload catalog client script on catalog item as below.
function onLoad() {
setTimeout(function(){
var fields = top.document.getElementsByClassName('field-label');
for(var i=0;i<fields.length;i++){
fields[i].style.fontWeight="bold";
}
}, 100); //increase the timeout if not working
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2021 05:24 AM
It is working on all variables except label type fields, is there any way to fix it?
Thanks for the response.