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
‎10-21-2022 06:21 AM - edited ‎10-21-2022 06:23 AM
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";
Regards,
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:23 AM
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'
Also, refer to this thread : https://www.servicenow.com/community/developer-forum/making-a-label-bold-on-service-portal/m-p/14264...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 06:39 AM