Forum Discussion
neophyte
Jul 31, 2023Copper Contributor
List Format View – Background Color from Column
TL;DR I deleted the existing Color column and created a new Color column with the same apparent properties. The content of the new column is rendering as expected. Note: I forgot to add the new colu...
ganeshsanap
Aug 12, 2023MVP
neophyte I think it should work. Anyway, try using like this once:
"background-color": "=[$Color]"
Make sure you are storing valid color names in the "Color" column like red, green, yellow, etc or the hex color including # like #FF0000.
Also, make sure you are using correct internal name of your color column in the JSON formatting. You can get the exact internal name of your column by following this article: How to find the Internal name of columns in SharePoint Online?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.