Apex Tip: How to remove the action column on standard related List

Many customers ask to remove the actions (Edit, Del) from related list and the natural way to solve that is by removing Edit and Del permission on the profile.

However sometimes you need that the user have those permissions. For instance, when the user trigger a web service that update the record.

So, here the magic, using a simple line of jQuery:

Where lContacts is the ID of the related list.

Of course this need to add javascript to the page and hence it’s only possible to be used on visualforce.

Enjoy :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">