Forum Discussion
Bhavpreet Bains
Feb 21, 2018Iron Contributor
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 ...
- 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
Gregory Melson
Apr 01, 2018Copper Contributor
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
Bhavpreet Bains
Apr 03, 2018Iron Contributor
It worked. Thank you, Gregory!
- paul dallmanApr 04, 2018Copper Contributor
Also works for list "Item" field.