Forum Discussion
Yarrah
Feb 07, 2020Brass Contributor
additionalRowClass for SharePoint list row formatting doesn't seem to work for me
Hey all, I have been trying for some time to get the list row color formatting to work. I have a SharePoint list that contain Employee information. There is a 'Status' column of type "Single line...
AdrianStanislawski
Apr 23, 2020Copper Contributor
Yarrah You need to specify also a cell formatting:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$Status] == 'Active', 'sp-field-severity--warning', if([$Status] == 'InActive', 'sp-field-severity--warning', ''))",
"elmType": "div",
"txtContent": "@currentField"
}