You need to sign in to do that
Don't have an account?
Googla map clickable
I am trying to navigate to account detial page when user clicks it.
When I try to hard code the account id from "https://na15.salesforce.com/addrInstances[i].id" to a001ljsdklsd213.It is navigating to right account but it si not going to detail page when I use "https://na15.salesforce.com/addrInstances[i].id"
What I am doing wrong here..
google.maps.event.addListener(marker, 'click', function() { window.location ='https://na15.salesforce.com/addrInstances[i].id'; alert(addresses[i].name); });
Hi,
The issue I could see is the URL string your are creating, it should be like:
And if you do not want to hardcode the SF instance prefix URL then, this should work:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other's benefit.
Thanks for the reply.
But It didnt solved the issue.
I tried to debug using alerts also
below code is giving alert-1 and went to account id and gave alert-2
But when I tried as below code, It is giving alert and not doing anything.
Hi,
It should work!
Can you please post the exact script you are using and try to alert the generated URL to check whether proper URl is generated or not?
alert('/' + addrInstances[i].id);
I gave alert as said but It is not giving alert..
Below is the code that I am using