Disable Modern Comments Delete functionality

Copper Contributor

Hello,

The Sharepoint 365 still looks like it is in Beta phase.

There are build-in comments for each list item, but any user can delete any comment, doesn't matter who owns this comment, and it make very useless this functionality.

Is there any way to disable deletion of comments?

I think it should be very easy comparing to check who and what comment can delete.

6 Replies

@Mastahh 

 

Currently it is not possible to edit the comment or disable deletion of comments. 

 

ReferenceSharePoint Online: All you need to know about Commenting in Lists 


Please click Mark as Best Response 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.

 

@ganeshsanap 

Maybe there same way to inject Javascript and disable it?

 

@Mastahh with out-of-the-box SharePoint Online you can't inject javascript. Microsoft did this deliberately so sites wouldn't break when they add new features & functionality under their continuous development model. It might be do-able with SPFx but I have no knowledge of that as we can't use it at our company.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

@Mastahh 

As @RobElliott said, Injecting custom JavaScript/CSS on modern pages is not recommended.

 

However, you can inject JS and CSS files into SharePoint Modern pages using SPFx Application Customizer.

SPFx application customizer will be loaded on all existing and newly created modern pages in SharePoint. So, you have to check if you are on correct list/library within your code and then inject the necessary code.

You can also check the current logged in user and his/her permissions and hide the disable button accordingly.

  1. Build your first SharePoint Framework Extension.
  2. Inject Custom CSS on SharePoint Modern Pages using SPFx Application Extensions.
  3. Step By Step Procedure To Add A JS File To All Pages In A SPFx Modern Pages Using SharePoint Framewo....

For more information, check my answers at: 

  1. What is the best practice for getting JS and CSS files into a SharePoint Modern Page? 
  2. Remove logo at top left from SharePoint online hub site? 

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.

Thank you for the answer so as I understand sharepoint is still in beta phase, is there any info when final version of Sharepoint will be released?

@Mastahh SharePoint and the other Office 365 aps are under constant development. There will never be a "final" version which you would have got with packaged software, it's always developing.

 

Rob
Los Gallardos
Intranet, SharePoint, Website and Power Platform Manager (and classic 1967 Morris Traveller driver)