+ Start a Discussion
srinivasan14srinivasan14 

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?

TheIntegratorTheIntegrator

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.

STest123STest123

VisualForce Page:- 

 

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

<apex:form id="f1">

 

<script>

function check()
{
document.getElementById('p1:f1:button2').style.display='none';
}

 

</script>

 

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

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

 

 

</apex:form>

</apex:page>

 

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. 

 

Thanks