Description
I have the following code to format a List view, and it always work. Now, the subgroup is not being formatted accordingly.
I also, to make sure, left the column in the view, and even though it is not being formatted.
As-it Used to be (second level - where marked in yellow in image above)
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "hideColumnHeader": true, "hideSelection": true, "hideFooter": true, "groupProps": { "hideFooter": true, "headerFormatter": { "elmType": "div", "style": { "display": "inline-flex", "align-items": "center", "height": "=if(@group.columnDisplayName == 'Assigned To', '16px', '12px')", "padding-left": "8px", "width": "=if(@group.columnDisplayName == 'Assigned To', '300px','350px')", "padding-top": "5px", "padding-bottom": "5px", "border-radius": "10px", "cursor": "pointer" }, "attributes": { "class": "=if(@group.columnDisplayName == 'Assigned To', 'ms-bgColor-neutralTertiaryAlt ms-fontColor-neutralSecondary', 'ms-bgColor-neutralLight ms-fontColor-themeLight--hover')" }, "children": [ { "elmType": "div", "txtContent": "=if(@group.columnDisplayName == 'Assigned To', @group.columnDisplayName + ':', 'ID ' + substring(@group.fieldData.title, indexOf(@group.fieldData.title,' '),0))", "children": [ { "elmType": "span" } ], "style": { "align-items": "center", "padding-right": "9px", "padding-bottom": "1px" }, "attributes": { "class": "=if(@group.columnDisplayName == 'Assigned To', 'ms-fontWeight-semibold ms-fontSize-10', 'ms-fontWeight-bold ms-fontSize-12')" } }, { "elmType": "img", "attributes": { "src": "=getUserImage(@group.fieldData.email, 'small')", "title": "@group.columnDisplayName" }, "style": { "align-items": "center", "width": "21px", "height": "21px", "border-radius": "50%", "display": "=if(@group.columnDisplayName == 'Assigned To','inherit','none')" } }, { "elmType": "div", "style": { "align-items": "center", "display": "inline-flex", "padding-right": "2px", "padding-bottom": "1px" }, "children": [ { "elmType": "span", "txtContent": "=if(@group.columnDisplayName == 'Assigned To', @group.fieldData.title, substring(@group.fieldData.title, indexOf(@group.fieldData.title + '^', '^'),indexOf(@group.fieldData.title,' ')))", "attributes": { "title": "@group.fieldData.title", "class": "=if(@group.columnDisplayName == 'Assigned To', 'ms-fontWeight-semibold', 'ms-fontSize-12')" }, "style": { "align-items": "center", "padding-left": "5px" } }, { "elmType": "div", "children": [ { "elmType": "span", "style": { "align-items": "center", "padding-left": "5px" }, "attributes": { "class": "=if(@group.columnDisplayName == 'Assigned To', 'ms-fontWeight-bold', 'ms-fontWeight-semibold ms-fontSize-10')" }, "txtContent": "='(' + @group.count +')'" } ] } ] } ] } } }