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
VarunCVarunC 

Hide Edit/Delete Links Related List

Hi...

 

I want to Hide Edit and Delete links from a Related List, How can I do that.

 

My basic  purpose is to ALLOW EDIT and DELETE ONLY through API calls in APEX or Triggers.I do not want Users to Edit any Child Related List record on there own for a Particualr Object's Related List.

 

How Can I do that?

Best Answer chosen by Admin (Salesforce Developers) 
Venkat PolisettVenkat Polisett

Remove Edit and Delete privileges on that related object from the profile. They will disappear from the related list.

 

 



vchaddha wrote:

Hi...

 

I want to Hide Edit and Delete links from a Related List, How can I do that.

 

My basic  purpose is to ALLOW EDIT and DELETE ONLY through API calls in APEX or Triggers.I do not want Users to Edit any Child Related List record on there own for a Particualr Object's Related List.

 

How Can I do that?


 

 

Message Edited by Venkat Polisett on 03-18-2009 06:57 PM
Message Edited by Venkat Polisett on 03-18-2009 06:59 PM

All Answers

Venkat PolisettVenkat Polisett

Remove Edit and Delete privileges on that related object from the profile. They will disappear from the related list.

 

 



vchaddha wrote:

Hi...

 

I want to Hide Edit and Delete links from a Related List, How can I do that.

 

My basic  purpose is to ALLOW EDIT and DELETE ONLY through API calls in APEX or Triggers.I do not want Users to Edit any Child Related List record on there own for a Particualr Object's Related List.

 

How Can I do that?


 

 

Message Edited by Venkat Polisett on 03-18-2009 06:57 PM
Message Edited by Venkat Polisett on 03-18-2009 06:59 PM
This was selected as the best answer
VarunCVarunC
But then I will not be able to EDIT/DELETE the record at all, Not even from APEX classes or Triggers ... isn't it ?
micwamicwa

Trigger always run in system mode, so you can edit, delete records there.

 

If you give a certain profile access to a class (bottom of profile detail page) you can delete or edit records there. So you can remove the edit and delete permission from the profile.

Laxman RaoLaxman Rao

You need to override the Edit and Delete links using a VF page.

In the visual force page show a message saying you cannot edit or delete things.