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

Nicolas Piveta
Kilo Sage

Hello.

can you try this:

g_form. getControl('field.name').style.fontWeight="bold";

 

If the variable is reference type:

try this:

var myVar = $('sys_display.' + g_form.getControl('field.name').id);

myVar.style.fontWeight="bold";

 

Field Styles 

 

Regards,

Nicolas

Hi Nicolas,

Please suggest will it work for "Label" type. I have tried this but getting error message and snapshot attached for reference. Error message is showing when we load the service portal.

 

Regards,

Vineela

Community Alums
Not applicable

Hi @Vineela1 ,

To make a label bold, increase font size or for any other decorations

just add a new variable with with type as 'Rich text Label'

SandeepDutta_0-1666358574831.png

 

Also, refer to this thread : https://www.servicenow.com/community/developer-forum/making-a-label-bold-on-service-portal/m-p/14264...

 

Hi Sandeep,

I tried with Rich label text. But it is showing that options which you shared on image. After creation of variable also , it is not showing that options to make bold. Please suggest inputs. Image attached for reference.

 

Thanks and Regards,

Vineela