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
Amit VisapurkarAmit Visapurkar 

Can i customize the trigger error


Error: Invalid Data. 
Review all error messages below to correct your data.
Please enter another value.

I want to show only the third line and not the first two lines.The method used is  newOpp.adderror('Please enter another value.)

Please help it's urgent 
bob_buzzardbob_buzzard
You can't do this in the regular UI I'm afraid. Visualforce allows you to display just the error message, but as far as the standard UI is concerned there was an error and it prepends the first two lines itself.