function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mattpick1mattpick1 

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

mattpick1mattpick1

*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

Message Edited by mattpick1 on 02-05-2010 08:06 AM
marketforcemarketforce

I have a similar need. Did you ever figure it out?

marketforcemarketforce

I was able to get this to work simply by removing "'Parent" from your code

 

window.location.href=