How to add style (coloured dot) in the status field for a particular state in list view.

VIKAS MISHRA
Tera Contributor

PLease refer the screenshot where its showing one pink coloured dot with all the state fields value in list view, 

We have added it thorugh the style but now i do not know where i can add the condition so that this coloured dot can be visible only for a particular state value not with all the values.

Please suggest where to add this condition.

 

find_real_file.png

 

 

find_real_file.png

5 REPLIES 5

Vasantharajan N
Giga Sage
Giga Sage

Step 1: Navigate to All > System UI > Field Styles 

Please set the Value field on the form holds the actual value (not display value) for the field "Status"

if the Value matches the record status then the respective CSS style is applied


Thanks & Regards,
Vasanth

The backend name of the choice value "Open"  is also same like "Open",

Please suggest what to do now, have noting to change

I can see the pink dot style applied for status Open and Analysis. So you should have configured more than one style for different values in the Field styles.

In the below URL please replace the following variables with the actual value 

1. instance_name

2. table_name

https://instance_name.service-now.com/sys_ui_style_list.do?sysparm_query=name=table_name

This way you will see the different styles applied on fields in the table GSLN Task in your screenshot. So please check how many records you are seeing for the field Status (it will be more than one record for sure) then make the change to Style field as per the actual Value (NOT label) for the Status.


Thanks & Regards,
Vasanth

Sagar Pagar
Tera Patron

Hi, @VIKAS MISHRA,

 

You have to write conditions in value field, so that the style will be applied based on your applied conditions only.

Take a look at below example for reference -

 

Table - Incident

Field name - Status

Value - javascript:current.status == 1

Note - add proper status/state value here

Style - background-color: Deeppink;

 

Feel free to mark helpful and correct!

Thanks,

Sagar Pagar

The world works with ServiceNow