19
March

0 Comments | 0 Shares | Urdhva Tech

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.
Download attachments:
Comments
  • No Comments Found.
Post your comment