You need to sign in to do that
Don't have an account?
Logging a call results in the user being re-directed to the salesforce login screen
Hi,
I have this javascript that automatically re-directs a user to the log a call page when an event happens:
window.parent.location.href = "/00T/e?title=Call&who_id={!Contact.Id}&followup=1&tsk5=Call&retURL=%2F{!Contact.Id}";
The 'retURL' portion of the url is set to return the user to the contact they were looking at's page.
Unfortunately this is not happening, instead when the call has been logged and the user clicks 'save' (which appears to be redirecting the user to '/00T/e') the user has to log in again.
This has to be done with javascript as other things are going on before the user is re-directed. Any ideas how I can get it to return to the contact page?
Thanks
Matt
*UPDATE*
The navigateToUrl() function accomplishes what I want, but only in the current window, I want the parent window to change. Is there a way of doing this?
Thanks!
Matt
I have a similar need. Did you ever figure it out?
I was able to get this to work simply by removing "'Parent" from your code
window.location.href=