You just need to format the status column. Is it choice column, if so you could format it as below:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi ,
How to set JSON format to sharepoint list view with a group by “status”. Here a condition for each status with a text and colored circle with different color code is presented
You just need to format the status column. Is it choice column, if so you could format it as below:
Hi @suresh p ,
By dafault, JSON column formatting cannot refer to the column which is not present in the view. As a workaround, you could use calculated clolumn to achieve this.
Below is my the example:
Three column: _Hidden_FlowStatus(Single line of text), color(Single line of text), flow status(Calculated column with formula =IF(1=2,Color,_Hidden_FlowStatus)
)
Hide _Hidden_FlowStatus colmn and color column:
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi @suresh p ,
You could format the entire row use the rowFormatter
or additionalRowClass
properties, below is my sample for you:
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "='ms-bgColor-'+toLowerCase([$Color])+ ' ms-fontColor-white' "
}
Besides, here are samples in the git hub that would help you:
https://github.com/pnp/sp-dev-list-formatting/tree/master/view-samples
https://github.com/pnp/sp-dev-list-formatting/tree/master/view-samples/generic-ryg-status-format
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.