Sharepoint List View Formatting Like Button


I've enabled the rating options in my SharePoint List and SharePoint gives me an easy to use heart button. 


However, when I add my custom JSON formatting to my list, I cannot figure out how to add the heart button. I can add in details such as Number of Likes, and who has liked, but no actionable button that adds 1 like.

Does anyone know how this can be accomplished?

1 Reply

@TrevorSandidge Microsoft recently introduced setValue in JSON formatting. I think this should help you for your scenario.

Documentation: Set multiple field values of an Item using customRowAction 


I have create a similar JSON formatting sample for like/unlike. You can check it at: like/unlike list item 



Similar samples:

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.