You need to sign in to do that
Don't have an account?
fvrfvsrtbb rt
addError in trigger does nothing in service cloud console when editting records
trigger CheckPhoneFields on Contact (before update) { for (Contact contact: System.Trigger.new) { if (contact.Phone != null && contact.Phone.length() > 20) contact.Phone.addError('Too many digits ('+contact.Phone.length()+'). 20 max.'); } } This code works for inline editting, it does not save the changes and it displays the error. Full page editing in the service cloud console does not display the error. |
Your code looks like perfect and when i try from my end its working in service console too.
So, could you re-check your console settings and update if you miss any.
Or share the console settings so, that i will check and let you know.
Thanks
Prathyu