Forum Discussion
Sharepoint Conditional Formatting
- 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",
""
]
}
}
}
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",
""
]
}
}
}
- Nigel WitherdinJan 31, 2018Iron Contributornice one! Will have to look into what you can do with column formatting a little more
- Nigel WitherdinJan 31, 2018Iron ContributorGood write up on this topic here: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting
- Joe FischerFeb 01, 2018Brass ContributorThanks I will see what else I can play with :)