You need to sign in to do that
Don't have an account?
how to show error on same page even i put feildname.adderror('You can not delete Active accounts'); it take me on new page is anyone can answer it ... thanks in advance
how to show error message on same page even i put feildname.adderror('You can not delete Active accounts'); it takes me on new page for showing error can anyone answer it ... thanks in advance
May I suggest you please check with below link from the stack exchange community with a similar issue.
- https://salesforce.stackexchange.com/questions/103191/how-to-display-error-message-in-same-page-in-triggerbefore-delete
Please let us know if this helps.Thanks,
Nagendra