Yes, this is possible, at least for detail view. You'll need to copy your detailviewdefs.php from modules/accounts/metadata to custom/modules/accounts/metadata (if it is not already in that folder). Once you do that, find the field that looks like:
PHP Code:
array (
'name' => 'name',
'comment' => 'Name of the Company',
'label' => 'LBL_NAME',
),
and add the line
PHP Code:
'customCode' => '{$fields.name.value} {$fields.yourVariable.value} ',
where yourVariable is the name of your variable (note that if this is a custom variable you may have to append an '_c' at the end of the variable name). If it doesn't update automatically (the metadata is usually cached), turn developer mode on (admin->system settings), and then once you get what you need, turn it back off as it takes up more processing.
I don't know if this is possible in edit view without a lot of work as its somewhat nonstandard (in any html form, not just sugar) to have one input field for two different variables.
Bookmarks