Forum Discussion

Sam1209's avatar
Sam1209
Brass Contributor
Nov 12, 2019
Solved

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 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.

  • 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

1 Reply

  • 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

Resources