You need to sign in to do that
Don't have an account?
Jazmine Moore
Overriding "Delete" with Visualforce Page for only non System Admin Profile Users.
I am looking to override the Delete button and link on both the contact and lead objects. Can anyone help me with the Visualforce page and controller class?
Create a new record type and remove that button in page layout and assign that record type to all profiles except admin.
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
Salesforce Freelance Consultant/Developer/Administrator
@For Salesforce Project Support: varaprasad4sfdc@gmail.com
Salesforce latest interview questions :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1
For more help, you can actually refer to the following post where a similar problem is addressed (though its based on field and not profile)
https://developer.salesforce.com/forums/?id=906F0000000971PIAQ