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
Starbucks MochaStarbucks Mocha 

Delete confirmation popup

Hi All,

I have created a visualforce page and overriden the standard delete action button with that visualforce page. when I click on the delete button before launching my page content, I'm seeing the popup saying "Are you sure?" . Is there any way that we can remove this standard action on load of my visualforce page?

I do not want to see the standard delete confimation popup message when delete button is being clicked.
Delete popup
Nikhil Verma 6Nikhil Verma 6
Hi,
If you want the confrmation message to be removed, use a custom button instead of the standard one. The standard button will always ask for a confirmation before redirecting the user to the overridden page. You can remove the standard button from the layout and use the custom button in its place.
However, this will not be applicable if the record is being deleted from any other place (other than the detail page). In that case, you will still see the confirmation message.

Hope this helps.