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
BrockBrock 

MapQuest

I've downloaded the Mapquest S-Control but even after I add it to an account, contact, etc. page, it still doesn't show up with the link?  Any information in getting this link to work would be great!
DevAngelDevAngel
Sorry, that is a control from MapQuest, not salesforce.  You'll have to contact them.
Greg HGreg H
I haven't worked with this sControl but I did just try to test drive it and it didn't work.  From what I can see in the source code, it looks like there is a window.close call in the script.  Try removing that and see what happens.
-greg
ccrawfordccrawford
Brock, I hope you got help with this.

The Mapquest install doesn't do everything you need it to do - you have to manually setup a formula field to display the button that allows users to click over to the mapquest application.

Since this is the only Mapquest thread I've seen, I figured I'd post some of my changes here to make it a bit more useful.

I did two things that seem to help: 1) I changed the link to go directly to the 'find nearby' page rather than going to the single map first (seems to load faster) and 2) added another link on the same line to go to www.mapquest.com and get a map there - that way you can get driving directions real fast.

For the Scontrol I only had to change the URL imbedded in there:

Code:
var _url = ""
// _url += "https://salesforce.sa.mapquest.com/mqsalesforce/index.jsp";
_url += "https://salesforce.sa.mapquest.com/mqsalesforce/nearby.jsp";


And my formula field now looks like this (which is nice because you can change which address field is being used for the second link!):

Code:
HYPERLINK("/servlet/servlet.Integration?lid=01N600000008pOt&accountId=" & Id ,
"Find Nearby Accounts") 

& " " &

HYPERLINK("http://www.mapquest.com/maps/map.adp?address=" & BillingStreet & "&city=" & BillingCity & "&state=" & BillingState & "&zipcode=" & BillingPostalCode & "&country=" & BillingCountry & "&cid=mq4sfdc",
"View on MapQuest.com")

 

pacmanpacman
What (or where) did the "lid" come from? i.e. "lid=01N600000008pOt"?
 
Pardon the newbie question - but if I exactly duplicate your setup I get a URL not found from SF.
 
HYPERLINK("/servlet/servlet.Integration?lid=01N600000008pOt&accountId=" & Id ,
"Find Nearby Accounts")
 
 
ccrawfordccrawford
The lid is the s-control's ID. If you install MapQuest for AppExchange and follow the instructions in the Configuration Guide it has you make this url with the s-control's ID.