How to add style (coloured dot) in the status field for a particular state in list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 05:08 AM
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.
- Labels:
-
Script Debugger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 05:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 05:42 AM
The backend name of the choice value "Open" is also same like "Open",
Please suggest what to do now, have noting to change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 08:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 10:10 PM
Hi,
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