Show message after redirection

sugarcrmdevelopers —  April 11, 2013
Greetings!

To do: Let’s alert user a message after redirection to any view.

Following piece of code will show a message at the top of the view you have redirected user to.

SugarApplication::appendErrorMessage(‘You have been redirected here because ….’);

If you dont know how to redirect user to a certain view,

SugarApplication::redirect(‘index.php?module=<MODULE_NAME>&action=<ACTION>&record=<RECORD_ID>’);

Hope it helps.

Feel free to leave your comments.