function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Is there any way to remove/hide the Edit|Del option in the related list?

Is there any way to remove the Edit|Del option in the related list?


I think the only way to do it is through profile permission. If you remove the permission for edit and delete for the profile of a user, they won't see in this in list view.


VisualForce Page:- 


<apex:page controller="Test" id="p1">

<apex:form id="f1">



function check()




<apex:commandbutton id="button1" value="Button1" onclick="check()" />

<apex:commandbutton id="button2" value="Button2" />






Here is a simple examples when we click on button 1  then Button 2 is to be automatically hide from page. you can help from this code for solve your problem .


i have checked that you can hide custom button or standard button into standard page or custom page by these code.


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.