Documentlibrary - Voting?

Martin, Heidi (SE GP T SP PS) 571 Reputation points
2024-01-16T14:53:54.9666667+00:00

Hello, Is it possible to vote in a document library? Like or Dislike? If so, is it possible that you cannot see who has voted, only the owner? Thank you!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,209 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 28,226 Reputation points Microsoft Vendor
    2024-01-17T07:43:42.38+00:00

    Hi @Martin, Heidi (SE GP T SP PS) ,

    It’s a hidden feature in SharePoint Communication Site, so, It won’t be available on the Site collection features page. However, let’s just activate the “Rating” feature alone using PowerShell.

    #Site URL
    $SiteURL = "https://crescent.sharepoint.com/sites/Portal"
     
    #Connect to SharePoint Online site
    Connect-PnPOnline $SiteURL -Interactive
     
    #Enable Rating Feature
    Enable-PnPFeature –identity 915c240e-a6cc-49b8-8b2c-0bff8b553ed3 -Scope site
    

    Remember to replace the variable $SiteURLwith your own.

    This will activate the Rating feature for all lists and libraries in the site! After my testing, it works fine in my Communication Site!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 28,226 Reputation points Microsoft Vendor
    2024-01-17T02:35:55.83+00:00

    Hi @Martin, Heidi (SE GP T SP PS) ,

    Thank you for posting in this community.

    Yes, it is possible to enable voting in a document library in SharePoint. You can choose whether to let library visitors apply a star rating to an item (one to five stars) or to simply ”like” the item.

    To add ratings to your SharePoint library:

    • Go to the Library Settings.
    • Under General Settings, click Rating settings.
    • Under Allow items in this list to be rated?, click Yes.
    • Under Which voting/rating experience would you like to enable for this list?, Select Likes to let site visitors indicate that they like a document or other list item. User's image

    After my tests, We can't see who voted for the time being.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Martin, Heidi (SE GP T SP PS) 571 Reputation points
    2024-01-17T05:27:39.6033333+00:00

    Good morning @Haoyan Xue_MSFT

    Thank you for your answer, but this is only possible with a "Teams Site" - but we work with a "Communication Site". Do you have a solution for this? That would be great.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.