Overview:
When clicking the map link of an Address record on the Account page in CRM online, an error occurs:
JavaScript is a security vulnerability, so it's not allowed in this hyperlink. Ask your admin for help.
Root Cause:
The error occurs because there is JavaScript tries to run in the hyperlink, which is defined in the Map field on the Address object shown below:
HYPERLINK("javascript:location.href='http://maps.google.com/maps?f=q&hl=ja&q='+encodeURI('" & Name & " " & City_vod__c & "')", "map")
After SFDC Winter '18, users are not allowed to add or execute JavaScript in the URL of a HYPERLINK function.
Solution:
Change the formula of the Map field on the Address object as shown below:
HYPERLINK("http://maps.google.com/maps?f=q&hl=en&q=" & Name & "+" & City_vod__c , "map" )
Once this is done, the map can be opened as expected when clicking the map link.
Related Documentation:
N/A