SP List Comments - Making it anonymous

%3CLINGO-SUB%20id%3D%22lingo-sub-2875041%22%20slang%3D%22en-US%22%3ESP%20List%20Comments%20-%20Making%20it%20anonymous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2875041%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20-%3C%2FP%3E%3CP%3EI%20have%20the%20JSON%20code%20below%20-%20how%20can%20I%20change%20it%20to%20not%20post%20the%20person%20who%20submitted%20the%20comment%3F%3C%2FP%3E%3CP%3E09%3A30%20AM%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%26nbsp%3B%20%22%24schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%3C%2FA%3E%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22elmType%22%3A%20%22div%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22attributes%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22class%22%3A%20%22ms-fontColor-themePrimary%20ms-fontSize-m%22%3CBR%20%2F%3E%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%20%22children%22%3A%20%5B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22elmType%22%3A%20%22span%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22style%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22padding-right%22%3A%20%2210px%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22attributes%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22iconName%22%3A%20%22Comment%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22elmType%22%3A%20%22span%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22txtContent%22%3A%20%22%3Dif(%5B%24_CommentCount%5D%20%3D%3D%20''%20%2C%200%20%2C%5B%24_CommentCount%5D)%20%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2875041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello -

I have the JSON code below - how can I change it to not post the person who submitted the comment?

09:30 AM

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "attributes": {
    "class": "ms-fontColor-themePrimary ms-fontSize-m"
  },
  "children": [
    {
      "elmType": "span",
      "style": {
        "padding-right": "10px"
      },
      "attributes": {
        "iconName": "Comment"
      }
    },
    {
      "elmType": "span",
      "txtContent": "=if([$_CommentCount] == '' , 0 ,[$_CommentCount]) "
    }
  ]
}

0 Replies