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
shyamala ls 7shyamala ls 7 

Before delete, better error message

How to display before delete error message?
I tried but its appending with standard error messages with my message.
An error occurred while trying to update the record. Please try again.You cannot delete the Group if it contains Experts in it.

How to remove the appended message "An error occurred while trying to update the record. Please try again."
LBKLBK
Are you trying to add this error message in your page layout?

A custom javascript button would be ideal for you.

You can check if the group consists of Experts in it and display your custom error message, if it does.

Else, you can attempt the actual delete operation.