Forum Discussion
Disable Modern Comments Delete functionality
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
Currently it is not possible to edit the comment or disable deletion of comments.
Reference: SharePoint 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.
- MastahhCopper Contributor
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.
- Build your first SharePoint Framework Extension.
- Inject Custom CSS on SharePoint Modern Pages using SPFx Application Extensions.
- Step By Step Procedure To Add A JS File To All Pages In A SPFx Modern Pages Using SharePoint Framework Extension.
For more information, check my answers at:
- What is the best practice for getting JS and CSS files into a SharePoint Modern Page?
- 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.