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
SHANEAUSHANEAU 

Specifying Account.BillingStreet Line 1

Hi Everyone,

 

I am just editing a GoogleMaps VisualForce script which I found on one of the discussion boards. The problem is what when multiple address lines are entered into !Account.BillingStreet, it does not display the Google Address. (it only works when only line1 is entered and the other lines are left blank).

 

To overcome this I think it needs to be more specific as to what line it is referring to.

 

So my question is; What code would I enter to replace "!Account.BillingStreet" so that it specifies Line1 or Line2 etc of that billing street? I.e. !Account.BillingStreet.Line1 (tried this but it doesn't work).

 

Thanks for any help on this, much appreciated!

Shane

Rich PRich P

I just discovered the same problem. Did you find a workaround?

rkellandrkelland

I managed to fix this by chaging all instances of the address field to the following.

 

{!SUBSTITUTE(JSENCODE(Account.BillingStreet),'\r\n',' ')}