Back to column formats
Column formattingSharePoint Online

Status Column Badges

This sample uses SharePoint column formatting to display status values as simple, color-coded badges. It provides a quick visual indicator that makes list items easier to scan.

Status Column Badges formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

Column formatting
Download JSON
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "style": {
    "padding": "8px",
    "border-radius": "4px",
    "text-align": "center",
    "color": "white",
    "font-weight": "bold",
    "background-color": {
      "operator": "?",
      "operands": [
        {
          "operator": "==",
          "operands": [
            "@currentField",
            "Sending Card"
          ]
        },
        "#FFB900",
        {
          "operator": "?",
          "operands": [
            {
              "operator": "==",
              "operands": [
                "@currentField",
                "Confirmed"
              ]
            },
            "#28A745",
            {
              "operator": "?",
              "operands": [
                {
                  "operator": "==",
                  "operands": [
                    "@currentField",
                    "Issue Reported"
                  ]
                },
                "#DC3545",
                "#808080"
              ]
            }
          ]
        }
      ]
    }
  },
  "txtContent": "@currentField"
}

From the contributor

How to use this sample

This sample uses SharePoint column formatting to display status values as simple, color-coded badges. It provides a quick visual indicator that makes list items easier to scan.

Status Column Badges

Features

  • Displays each status as a centered badge
  • Uses amber for Sending Card
  • Uses green for Confirmed
  • Uses red for Issue Reported
  • Uses gray for any other or unexpected value
  • Does not change the underlying list data
  • Contains no tenant-specific or personal information

Requirements

Create a SharePoint Choice column containing the following values:

  • Sending Card
  • Confirmed
  • Issue Reported

The choice values must match exactly for the corresponding colors to appear.

Installation

  1. Create or open a SharePoint list.
  2. Add a Choice column named Status.
  3. Add the required choices listed above.
  4. Open the Status column menu.
  5. Select Column settings and then Format this column.
  6. Select Advanced mode.
  7. Copy the contents of generic-status-badges.json.
  8. Paste the JSON into the formatting editor.
  9. Select Save.

Status Colors

Status Color
Sending Card Amber (#FFB900)
Confirmed Green (#28A745)
Issue Reported Red (#DC3545)
Any other value Gray (#808080)

Customization

You can customize the formatting by changing the status text or hexadecimal color values inside generic-status-badges.json.

If you change a status name, make sure the value in the JSON exactly matches the corresponding SharePoint Choice value.

Sample

Solution Author(s)
generic-status-badges.json Leul Mesfin

Version history

Version Date Comments
1.0 September 22, 2026 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.