Json formatting not working after SP List update

JooPauloSantos-7617 0 Reputation points
2024-03-07T16:56:05.9633333+00:00

Hey guys, after a recent update to sharepoint lists my json formatting code stopped working as expected, cant figure out why.

Please notice the images bellow to see the diference.

Before:

img6

After:img5

Here is the code

{

"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",

"groupProps": {

"headerFormatter": {

"elmType": "div",

"style": {

"flex-direction": "row"

},

"children": [

{

"elmType": "div",

"style": {

"padding": "4px 8px 5px 8px",

"border-radius": "6px",

"font-weight": "500"

},

"attributes": {

"class": {

"operator": "+",

"operands": [

"ms-bgColor-themePrimary ",

"ms-fontColor-white"

]

}

},

"children": [

{

"elmType": "span",

"style": {

"padding-right": "6px",

"padding-top": "2px"

}

},

{

"elmType": "div",

"style": {

"display": "inline-flex",

"padding-right": "9px"

},

"children": [

{

"elmType": "div",

"style": {

"padding-left": "5px"

},

"attributes": {

"class": "ms-fontWeight-normal"

},

"txtContent": "@group.fieldData"

}

]

}

]

}

]

}

}

}

Appreciate all the help

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,676 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Hickman, Kelly 0 Reputation points
    2024-06-20T18:47:14.1366667+00:00

    SAME issue this morning, my json creating sections in my List items plain old doesn't work. This needs to be FIXED MICROSOFT!!! This is just a small section of my sandbox and it worked yesterday and doesn't work today.

    {

        "sections": [

            {

                "displayname": "Administration & Communication",

                "fields": [

                    "Title",

                    "Multiple Lines",

                    "another column",

                    "last column",

                    "Choice column"

                ]

            },

            {

                "displayname": "Webex",

                "fields": [

                    "webex"

                ]

            }

        ]

    }

    0 comments No comments

  2. Rintu Mondal 0 Reputation points
    2024-06-21T01:35:59.3266667+00:00

    Hi Team - I am also facing issue with Json formatting after list update.
    Normal on click is not working.

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
      "elmType": "a",
      "attributes": {
        "class": "ms-fontColor-themePrimary ms-fontColor-themeDark--hover",
        "href": "= @currentWeb + '/SitePages/Task.aspx?ItemID=' + [$ID]",
        "target": "=_blank"
      },
      "style": {
        "border": "none",
        "background-color": "transparent",
        "cursor": "pointer"
      },
      "children": [
        {
          "elmType": "span",
          "style": {
            "padding-right": "6px"
          }
        },
        {
          "elmType": "span",
          "txtContent": "@currentField"
        }
      ]
    }
    
    0 comments No comments

  3. Lynn Houck 0 Reputation points
    2024-06-25T12:04:13.2333333+00:00

    I'm having the same issue; however, my issue is on column json and not on view Json.

    I'm using the Basics that Microsoft.Learn.com suggests. When I try to call a flow and update the header text or the run flow button text the code is ignoring what I have the line that is half working ""actionParams": "{"id":"f7ecec0b-15c5-419f-8211-302a5d4e94f1", "headerText":"Reject with comments ","runFlowButtonText":"Reject "}". It calls the flow but doesn't update the header text or the button text. It was working just a couple of weeks ago when I Demo'd the buttons to the business and then during testing it now doesn't. Another very simple custom row action set Value is also not working.

    This is just a couple of samples where I'm having the issue. It seems to be hit or miss on what works and what doesn't.

    0 comments No comments

  4. CHIANG HUNG 0 Reputation points
    2024-07-17T03:14:35.57+00:00

  5. JDL 0 Reputation points
    2024-07-18T13:10:30.8333333+00:00

    Hi.
    A bug is declared in GitHub on that topic :
    https://github.com/SharePoint/sp-dev-docs/issues/9794

    To see it, your view should fold the groups by default.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.