Forum Discussion
Sammantha_H
Jul 21, 2025Copper Contributor
Json conditional formatting based on a multi-lookup projected field
I have an issue with formating a set of Multi-lookup fields with projected fields in my sharepoint list. What I am looking to do is format the PrimaryLookup so that it checks the animal type project...
Etheiano
Aug 05, 2025Brass Contributor
Use the switch function in SharePoint list JSON formatting to determine multiple lookup field values. Here is a sample code snippet:
json
{
“elmType”: “div”,
“style”: {
“color”: “=switch([$MultiLookup], ‘Value1’, ‘green’, ‘Value2’, ‘red’, ‘black’)”
}
}