SOLVED

SharePoint List View Conditional Formatting

Brass Contributor

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 bold, or highlight it red.

 

This column is a Yes/No checkbox, and I only want to apply this to one view.

 

Any help would be appreciated.

1 Reply
best response confirmed by Sam1209 (Brass Contributor)
Solution

Hi @Sam1209,

 

Here is an example:

clipboard_image_0.png

 

{
"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

1 best response

Accepted Solutions
best response confirmed by Sam1209 (Brass Contributor)
Solution

Hi @Sam1209,

 

Here is an example:

clipboard_image_0.png

 

{
"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

View solution in original post