Forum Discussion

Joe Fischer's avatar
Joe Fischer
Brass Contributor
Jan 29, 2018
Solved

Sharepoint Conditional Formatting

Hi All, I am trying to find Json code for SharePoint online 365 columns in a custom list:   If columnX = "no" make the column bold   TIA, Joe
  • Joe Fischer's avatar
    Joe Fischer
    Jan 31, 2018

    Hi Nigel,

    Yes a small bit of Json in the column formatting does the trick :)

    Below is an example, @faustocapellanjr sent me...

    Thanks again for your help.

    Joe

     

    {
       "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
       "txtContent": "@currentField",
       "elmType": "div",
       "style": {
           "font-weight": {
               "operator": "?",
               "operands": [
                   {
                       "operator": "==",
                       "operands": [
                           "@currentField",
                           "No"
                       ]
                   },
                   "bold",
                   ""
               ]
           }
       }
    }

Resources