0

I am trying to format a list with Json. I want elements in the list to turn red if the value in one column is "No". I found an example on the internet, added my own values and deleted som conditions that I did not need. But it wont work. What am I missing?

{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$In_x0020_Workday] == 'No', 'sp-field-severity--blocked', '')"
}

Regards Maria

1 Answer 1

0

Use true/false as condition:

{
  "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "additionalRowClass": "=if([$In_x0020_Workday] == false, 'sp-field-severity--blocked', '')"
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.