+ Start a Discussion
nununinununi 

Custom Delete Button on Detail Page

I am trying to create a custom delete button on an objectA which deletes the particular record only if the value in fieldA matches the Role of the logged in user. If it does not match it needs to throw an error. I was trying to use 'OnClick javascript". Can anyone help me wit the code? Thanks!
Best Answer chosen by nununi
Sonam_SFDCSonam_SFDC
Go through the below community thread - 
https://developer.salesforce.com/forums?id=906F0000000971PIAQ

This has sample code which you can try to customize as per your requirement