The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hi. How to color code the Status field when we update status each time the color should change? plz help me

sujithanagaraju
Kilo Contributor

Hi. How to color code the Status field when we update status each time the color should change? plz help me

1 ACCEPTED SOLUTION

Geoffrey2
ServiceNow Employee
ServiceNow Employee

You use Field Styles for this: Defining Field Styles - ServiceNow Wiki



Right-click on the label of the field and select Configure Styles.


Screenshot.png



The Value needs to be the database value of the choice option. So 1 instead of New.


Style is standard CSS.



Screenshot.png


Screenshot.png



Note, the field is normally only styled in the List view or when it is read-only on the form.


View solution in original post

3 REPLIES 3

Ajai S Nair
Giga Guru

Hi Sujitha,



These links will help you for that:


Defining Field Styles - ServiceNow Wiki


Custom Field Styles


Useful Form Scripts - ServiceNow Wiki   (check the script - Change Form Color on State Change)


Geoffrey2
ServiceNow Employee
ServiceNow Employee

You use Field Styles for this: Defining Field Styles - ServiceNow Wiki



Right-click on the label of the field and select Configure Styles.


Screenshot.png



The Value needs to be the database value of the choice option. So 1 instead of New.


Style is standard CSS.



Screenshot.png


Screenshot.png



Note, the field is normally only styled in the List view or when it is read-only on the form.


sujithanagaraju
Kilo Contributor

Thanks a lot Ajai and Geoffrey