How to show Success alert message in bwc quotes module upon successful action completion
The best thing I could find for BWC modules is use of the SugarApplication object's appendErrorMessage function. I hope that helps!
But the requirement is to show Success messages in green colour similar as we show on creation of Opportunities,Accounts,Contacts etc.
You could probably customize the CSS in a better way, but the quickest and easiest way I found to make a green success message is to add the following in a before_save or after_save logic hook (obviously modifying the CSS to fit your needs/desires):
SugarApplication::appendErrorMessage('<span style="color: #00FF00; display: block; width: 100%; text-align: center; margin-top: 15px; font-size: 2em;">The record has been saved successfully!</span>');
I hope that helps!
Retrieving data ...