Forum Discussion
ulmoshare
Dec 03, 2024Brass Contributor
JSON Formatting Person Column
I have a SharePoint list in which only names of 5 people are possible in each row and column. Now I want to use JSON to design the list so that the cell background is displayed in a different color f...
- Dec 03, 2024
Hi, I have created an example with just one condition, but you can expand it by adding your own conditions.
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField.title", "style": { "background-color": "=if(@currentField.title == 'Diana Beginner', '#cc0000', '#00cc00')" } }
ulmoshare
Dec 04, 2024Brass Contributor
Great, thank you very much. This is exactly what I was looking for.