logo

NJP

Change the Font of the text on the form

Import · Oct 22, 2019 · article

Hi All,

i was just try to change the font on the incident form,some how i was able to achieve this .

Please follow the below steps:

1.As this is going to be DOM operation we need to disable below system property

glide.script.block.client.globals

refer SS :

image

2.Now add Isolate Script check box on the Client Script:

refer SS:

image

3. Now on OnLoad client script add below line:

document.getElementById("element.incident.caller_id").style.fontFamily ="Impact,Charcoal,sans-serif";

Note: elemet.incident.caller_id is an element id for Caller field.

This will be the result for the above configuration:

image

please mark my comments helpful if this will helpimage you in any way .

Regards,

Ajay Chavan

My Community Articles

LinkedIn

Labels:

image

View original source

https://www.servicenow.com/community/developer-articles/change-the-font-of-the-text-on-the-form/ta-p/2324275