UPDATE:::
Sorry everyone I have been clearer. This is supposed to be for the "format my view" feature in the Sharepoint Online custom list. I'm trying to make the entire row change color based on the "assigned?" column. I know i can do it for the column only but I want the whole row to highlight. When I try several guides, nothing happens.
This is one of the guides that I used but it didn't change the view. https://support.office.com/en-us/article/formatting-list-views-f737fb8b-afb7-45b9-b9b5-4505d4427dd1
I'm sure that this code is written correctly but it's not doing anything. A coworker of mine is helping me with the JSON but neither of us can figure out why it isn't working on Sharepoint Online.
Here is the code.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"elmType": "div",
"txtContent": "@Assigned?",
"style":
{
"color": "#fff",
"padding-left": "14px",
"background-color":
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": ["@Assigned?", "Not Released Yet"]
}, "#2ECC71",
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": ["@Assigned?", "Needs Reassignment"]
}, "#E74C3C",
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": ["@Assigned?", "Needs Assignment"]
}, "#F1C40F",
{
"operator": "?",
"operands": [
{
"operator": "==",
"operands": ["@Assigned?", "Assigned"]
}, "#FFFFF", ""]
}]
}]
}]
}
}
}
"[$Title]"
format, instead of"@Assigned?"
. Refer to the multi-line JSON example here github.com/SharePoint/sp-dev-list-formatting/blob/master/…@Assigned?
column? Refer Checking internal of column in SharePoint.