Skip to main content
deleted 2 characters in body
Source Link

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_Ratings]""[$Number_x0020_of_x0020_Likes]" } 

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_Ratings]" } 

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]" } 
Source Link

List View Row Formatting Using Ratings Column

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_Ratings]" }