Column formatting

Copper Contributor

Hi Guys,

 

Does somebody know how to hide the button approve in the view of sharepoint. I kknow of view formating but i don't know how to do this in Json

 

 

6 Replies

Hi @User221455 

Can you share the screenshot of button, you want to hide?

@NanddeepNachan 

 

This is the button i want to hide. https://www.google.be/url?sa=i&url=https%3A%2F%2Fblog.cosmer.com%2Fhiding-approve-reject-button-in-s... 

 
 
 
 
 
 
https://www.google.be/url?sa=i&url=https%3A%2F%2Fblog.cosmer.com%2Fhiding-approve-reject-button-in-sharepoint-modern-experience-views%2F&psig=AOvVaw3gpQ6_tVvvKw5GV4NeqqUG&ust=1664276559979000&source=images&cd=vfe&ved=0CAkQjRxqFwoTCLjUvb2nsvoCFQAAAAAdAAAAABAD

 

Hi @User221455 

 

The Approve/Reject appears as part of Require content approval for submitted items setting from your SharePoint document library.

If you set it to NO, the Approve/Reject menu will not appear for anyone.

The approval is happening though power automate so this is not used by anyone

@User221455 Are you trying to hide the approval button based on permissions or for all users?

 

You cannot hide options under ellipses (...) using JSON formatting. You can only hide options from command bar at the top.

 

If you want to hide for all users, turn off approval settings as suggested by @NanddeepNachan . You can find this setting at List settings > Versioning settings. Follow documentation for more information: Require approval of items in a list or library 


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.

Hi @User221455 

In that case, follow below steps

1. Go to Settings of list /library

2. Open Versioning settings

3. Under Content Approval, For Require content approval for submitted items?, set the value to No.