Display Address type field on Visualforce Page

Address is an especial type of fields in Salesforce, which is a structured compound data type, that we can’t use it directly on Visualforce page. And there will occure a compile error like “Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”, if we did that.

As the code sample below, we need to use fields BillingStreet, BillingCity, BillingState, BillingPostalCode, BillingCountry, BillingLatitude and BillingLongitude instead of BillingAddress field.

Apex Code

VF Page

Reference : compound fields address

Enjoy it!