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

Validation errors and Triggers

Sometimes I have trigger errors pop up with a validation rule error embedded inside. The reason is because the trigger got an error because the validation rule raised an error. How do I make only the validation rule error pop up?

Rahul SharmaRahul Sharma

Hello LiorG,


I hope you have added try catch in your trigger. If not then you might need to add a try catch and display appropriate error message using Trigger.addError method.

Validation Error as popup in standard page.....??
when I click on delete link in standard list, it should show the error as popup.....!!

Thanks in Advance..