I've created a visual workflow that will allow users that has custom permission to delete activities (calls, emails...) and a delete custom button have been created to trigger the flow and override the standard delete button. However, I also need to override the del link in the related list in order to prevent users that don't have custom permission to delete activities. Is there a way to override or remove the del link option from the action column in the related list or I really need to create a VF page to prevent the deletion? Suggestions?
1 Answer
Yes, you need to overwrite the entire related list with a Visualforce Page
. It used to be able to be possible by injecting stylesheets and scripts and the like, but that has been disabled for some time.
See also: End of javascript sidebar workarounds?
before delete
trigger and catch the delete action that way