This article is a supplement to the ServiceNow documentation. For full documentation please refer ServiceNow official website
Checkout our NEW Video Channel you can like and subscribe too!

Field Label Color

Use Case: Here we will make label of the field “Planned Outage or Disruption to Service?”of the change table as red Color so the field is noticeable.

field color19012021.JPG

To do this we have to Write down an onload client script:

  1. In the left navigation pane under System Definition we will find the client script

  2. Click on New button

Name: CR Field Label Color

Table: Change request

UI Type: All

Type: OnLoad

Script:

  function onLoad() {
        var callerLabel = $('label.change_request.u_planned_outage_or_disruption');
        callerLabel.setStyle({
        color: "red"
    });
}

field color img190120212.JPG

Field Color

Use Case: Here we will make the field “Number”of the change table as red Color so the field is noticeable.

To do this we have to configure Field Style

  1. In the left navigation pane under System UI we will find the Field Styles field color img 200120211.JPG

  2. Click on New button field color img 200120213.JPG
  3. Fillup fields as required field color img 200120214.JPG

  4. You can see as below field color img 200120212.JPG

More Details

    Content