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
srinu jsrinu j 

On the Account detail page we have contact relalted list which shows contact record with edit & delete links. How to remove edit & delete links. It is an interview question.

Aditya MohanAditya Mohan
Hi Srinu,
There are 2 solutions for this problem:
1) You need to remove the Edit and Delete privileges from the profile of the User. Then these options will be hidden.
2) You need to create a Custom Visualforce page with an <apex:pageBlockTable> which will look similar to the related list without the Edit and Del links and add it to the page layout.

You can also vote for this idea here: https://success.salesforce.com/ideaView?id=08730000000ksRdAAI

Thanks,
Aditya