0

I have a SharePoint Online list that contains the standard like style ratings feature. I am trying to format a row view for this list, I can get everything to work except for the ratings column (I can't get anything from it to display). Any ideas how I can format the JSON of the list view to display the information contained in the ratings column and allow the out of the box functionality to work (liking, removing like, displaying number of likes on the row)? Screenshots of the list and the relevant section of JSON are below.

Unformatted list: Unformatted list

Formatted List Row (trying to have it display in the bottom right): Formatted List

        {
        "elmType": "div",
        "children": [
          {
            "elmType": "span",
            "attributes": {
              "class": ""
            },
            "txtContent": "Number of Likes: "
          },
          {
            "elmType": "span",
            "style": {
              "display": "inline-block",
              "text-transform": "capitalize"
            },
            "txtContent": "[$Number_x0020_of_x0020_Likes]"
          }

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.