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
Huy NguyenHuy Nguyen 

Overide delete button

Hi all,

I want to overide the delete button from the contact object. when i click del . it will appear different message ? Can anyone help me to handle it ?
PratikPratik (Salesforce Developers) 
Hi Huy,

Here is the sample code:

Huy NguyenHuy Nguyen
Sorry my bad. I want to override delete action not delete button. Can you advise ?
you can try this way:
public PageReference delete_new()
            PageReference ret = controller.delete();
            //add additional functionality here