Forum Discussion

Bhavpreet Bains's avatar
Bhavpreet Bains
Iron Contributor
Feb 21, 2018
Solved

Formatting column making the column text to disappear

Hello,   I was testing Column Formatting using JSON on Name column in a document library. However, each time anything is adding, it makes the content in the column to disappear. I was trying the ...
  • Gregory Melson's avatar
    Apr 01, 2018

    This should fix it

     

    {
      "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
      "elmType": "div",
      "txtContent": {
        "operator": "+",
        "operands": [
          "[$FileName]",
          ".",
          "[$File_x0020_Type]"
        ]
      },
      "style": {
        "color": "orange"
      }
    }

    https://github.com/SharePoint/sp-dev-docs/issues/1524 link helped me

Resources