logo

NJP

How do I set short_description field your label bold

Import · Jul 24, 2019 · article

How do I set short_description field your label bold?

Images Description
image 01. >> System Definition > Client Scripts
image 02. New
image 03. Type information, in this case was used incident table and short_description field
04. Type script
image 05. Save / Submit

BEFORE:

image

AFTER:

image

Sample Script

function onLoad() {

 var l = g_form.getLabel('short_description');

l.style.fontWeight='bold'; }

obs: comments / work notes fields

    var Label = g_form.getLabel('comments');
    Label.style.color= 'red';
    Label.style.fontWeight='bold';

Note: Field styles are not applied to comments and work notes fields used with the activity formatter. Styles for these fields can be set using the glide.ui.activity_stream.style.comments andglide.ui.activity_stream.style.work_notes system properties located on the sys_properties table. source: field styles

Author:

Anna Abilio

Tiago Macul

Wrote in New York release

image

Summary

Making labels in Service Catalog appear in bold and a larger font

=======================

By

Hi,

View original source

https://www.servicenow.com/community/developer-articles/how-do-i-set-short-description-field-your-label-bold/ta-p/2327241