Forum Discussion

kellyhickman14096's avatar
kellyhickman14096
Brass Contributor
Jul 24, 2025
Solved

JSON in hyperlink formatted column

I just need to know if it's possible to have this JSON work for a hyperlink column. The hyperlink button works but the color if the column is populated does not. The color coding works on other colum...
  • virendrak's avatar
    Jul 29, 2025

    The @currentField in a hyperlink column is actually an object, not a simple string.  So when you try to compare it directly to "SessionSchedule", the condition doesn’t evaluate as expected. That’s why your background-color logic isn’t triggering; and it’s trying to compare an object to a string. 

    "background-color": {
      "operator": "?",
      "operands": [
        {
          "operator": "==",
          "operands": ["@currentField.description", "SessionSchedule"]
        },
        "#FFCE33",
        ""
      ]
    }

    This checks the description of the hyperlink (the display text) and applies the yellow background if it matches "SessionSchedule".

    If you want to style the actual link (<a>), you can also apply conditional logic inside the style of the elmType: "a" block - just make sure you're referencing the correct property.

Resources