SugarCRM customa addresses

If you are adding custom address fields then you must follow this to get the address to display like a address.

1 => array (
'name' => 'marketing_address_street',
'hideLabel' => true,
'type' => 'address',
'displayParams' =>
array (
'key' => 'marketing',
'rows' => 2,
'cols' => 30,
'maxlength' => 150,
),
),
),

 

the fields must follow the following names, the first word can be anything as thats the key, second is to be the word address and third to be …

marketing_address_street
marketing_address_city
marketing_address_country
marketing_address_postalcode
marketing_address_state

custom fields with _c do not work with this layout so add the fields in the EXT folder or you will need to update the fieldsmetadata and the custom table to remove the _c from the fields.