Hello,
I saw here on the forum how to use SugarApplication:redirect() in php code for redirection, but when trying to use it I was unsuccessful. I tried in a few ways:
Hello,
I saw here on the forum how to use SugarApplication:redirect() in php code for redirection, but when trying to use it I was unsuccessful. I tried in a few ways:
What Sugar version are you using ?
Rodrigo Manara
Sr. Developer
I'm using Sugar version 12.2.0
Hi Maria Eduarda Mattos Miguel
What is the context of this call? I mean, in which file are you trying to redirect?
Additionally, is there any reason to not redirect from js controller instead?
Kind regards
Hi André
It's a custom logic hook, I'm trying to redirect after filling in the fields. I tried to redirect with js, the redirect happens, however, it doesn't do the whole process that the logic hook should do, it seems that it breaks the execution of the logic hook.
Regards,
Maria Mattos.
On JS you should use App.sync();
Rodrigo Manara
Sr. Developer