Forum Discussion
Sam1209
Nov 12, 2019Brass Contributor
SharePoint List View Conditional Formatting
I need to conditionally format a view by highlighting the entire list row when a column called 'Contracts Read' (Contracts_x0020_Read) is equal to No. Ideally I would like to make the list row b...
- Nov 12, 2019
Hi Sam1209,
Here is an example:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$ContractsRead] == false, 'sp-field-severity--blocked', '')"
}Be sure to update $ContractsRead to $Contracts_x0020_Read.
I hope this helps.
Norm
Norman Young
Nov 12, 2019MVP
Hi Sam1209,
Here is an example:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$ContractsRead] == false, 'sp-field-severity--blocked', '')"
}
Be sure to update $ContractsRead to $Contracts_x0020_Read.
I hope this helps.
Norm