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
rosscorossco 

Displaying Address Fields similar to Salesforce Account

Goodday All

 

I am trying to display in a visualforce page an account's shipping and postal addresses. When Salesforce displays the address in the accounts tab it shows as follows

 

1 Blue Lane

Farhills

Somewhere over the Rainbow

The Moon

2123

 

 

When I display it I get the following:-

 

1 Blue Lane Farhills

 

Somewhere over the Rainbow

The Moon 2123

 

Obviously the first two lines of the address are in one field - but how does SF split it?

 

 

Many thanks

Ross

 

Navatar_DbSupNavatar_DbSup

Hi,

 

Following are shipping address field of the account object

 

ShippingStreet,

ShippingState,

ShippingPostalCode,

ShippingCountry,

ShippingCity.

 

You can arrange these fields according to your requirement on the Vf page.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.