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
kfrankfran 

Make Delete Button Inactive for Custom Object

Hello,
 
I've created a custom object called Offices and I do not want my end users to be able to delete.  Can I make the delete button inactive for that specific custom object?  I tried researching, but I'm not sure if I'm suppose to create a Visualforce page or an S-control????
 
Please help.
 
Thank you.
 
 
devNut!devNut!
Try removing the delete permission for the custom object on the desired user profile(s)
JimRaeJimRae
If you want to not display the Delete button at all, you can remove it from the page layout.  If you want to have it visible, but not actually delete the object record, you could override it with a simple s-control, maybe one that would pop-up a message saying "this feature is not available, contact support for assistance".
 
Jim