Active field in list view

Hello,

can somebody support me with question of active field in list view. How can i change custom field in list view to be active link todetail view of record. Default only Name field od module is active link into the detail view.

thank you for answer

SugarCRM: Make other field in Listview as a link to Detailview
Sometimes you dont need to use the name in a module as a link in Listview to redirect you to the Detailview of the record. If you want to set other fields in Listview as the link that will redirect you to Detailview, then follow this simple steps:

  1. Go to custom/modules/<MODULE_NAME>/metadata/listviewdefs.php (If not existing, copy file from modules/<MODULE_NAME>/metadata/listviewdefs.php)
  2. Find the field name that you want to make as the link. For example, use Billing City. It will look something like this:

‘BILLING_ADDRESS_CITY’ =>
array (
‘width’ => ‘10%’,
‘label’ => ‘LBL_LIST_CITY’,
‘default’ => true,
),
3. You need to add the the link attribute and set it to true.

‘BILLING_ADDRESS_CITY’ =>
array (
‘width’ => ‘10%’,
‘label’ => ‘LBL_LIST_CITY’,
‘link’ => true,
‘default’ => true,
),

  • If you want to make the name just plain text, comment the link attribute of the field in the same file.
  1. Run Quick Repair and Rebuild in Administration page.

This is an upgrade safe way of making a field as a link to go to Detailview.

Credits go to:
https://johndopenotes.wordpress.com/2013/05/16/sugarcrm-make-other-field-in-listview-as-a-link-to-detailview/