Forum Discussion
Justmeck
Nov 29, 2023Copper Contributor
How do I change the color of text based on a boolean field in sharepoint
I have the JSON Code below to show the header in my sharepoint contact list and it works fine when you delete "color": "=if([$Fallig], 'Red')" i want the color to be red when the ja/nein(yes/no[Boole...
ganeshsanap
Nov 29, 2023MVP
Justmeck Try using the expression like this:
"color": "=if([$Fallig],'Red','')"
Where Fallig is the internal name of your SharePoint list Yes/No column. You can get the internal name of your SharePoint list columns 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.