Hi all.
I'm creating a piece of code which stops users saving the Opportunity record when there are no contacts linked to it. I've gotten all the way to the end and have the code working, however I cannot get the custom error to work. I've seen an older question but no one has responded.
In the following location: custom/modules/Opportunities/clients/base/views/record I have the following code:
This works no problem at all, however you can see that I am trying to use a custom error called "contactrequired". This is saved here (as per sugar docs) custom/Extension/application/Ext/Language
However when I save the record and the code fires I get the generic
"Error Please resolve any errors before proceeding."
Rather than any custom error. Can anyone help please? Or point me to where I may be going wrong.
Many Thanks,
Daniel Hill