79248046

Date: 2024-12-03 14:45:16
Score: 6 🚩
Natty: 6
Report link

If I want to assign a color to a specific person ('[email protected]'), how can I achieve this:

{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",

"elmType": "div",

"txtContent": "@currentField.title",

"style": { "color": "=if('[email protected]' == @currentField.email, 'red', 'blue')"

} }

The above code doesn't work. Is it even possible to query a specific person?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: SQLFRAGE