+ Start a Discussion
kleinaItalienerkleinaItaliener 

Goole Maps - Problem with "output" | Formular Field

Hello,

 

i have created with a Formula Field an GoogleMaps Hyperlink:

 

Code: HYPERLINK("http://maps.google.com?q=" & Street1__c & "%20" & CityName__c & "%20" & State & "%20" & PostalCode__c & "%20" & Country__c , IMAGE("/servlet/servlet.FileDownload?file=01530000001hbwB", "Google Map"))

 

The Problem is that, if there is no Adress information the Outputfield will show me an Link:

 

<a href="http://maps.google.com?q=%20%20%20%20" target="_blank"><img src="/servlet/servlet.FileDownload?file=01530000001hbwB" alt="Google Map" border="0"/></a>

 

I would like to show me nothing if there is no Adress Information and if there is any Adress Information i would like to show me the GooleMaps Info.

 

I hope anyone can help me please:)

 

Txs.

 

Cheers

sjain1.2523113033806995E12sjain1.2523113033806995E12

Hi,

 i have tested this code at my end, its seems link did not break and image will appear after saving records if there is no address information.If you are handling this through code then you have to use string.split('"') methods to overcome this issue.