sharepoint online – Change Field Text

Use below JSON code:

    "$schema": "",
    "elmType": "div",
    "txtContent": "=if(@currentField == '', '', '•')",
    "style": {
        "color": "=if(@currentField == 'Amber', '#FFBF00', @currentField)",
        "font-size": "5em"

Choice column settings:

enter image description here


enter image description here

Documentation: Use column formatting to customize SharePoint


  1. You can adjust the font-size & the color codes (Hex) as per your requirements.
  2. Here I have added the choices same as the color name. So, I have used @currentField in else block of if condition in color property.

If you have different choices, you can change it like:

"color": "=if(@currentField == 'In Progress', '#FFBF00', if(@currentField == 'Not Started', 'red', if(@currentField == 'Completed', 'green', '')))",