subpanel field clickable to show detailview

sugarcrmdevelopers —  March 21, 2011

Editor’s Note: This is another post from SugarCRM Community member Milos Miric, showing how to make subpanel fields clickable.

Goal: make a field in subpanel clickable, to show detailview of that record
Upgradesafe: Yes
Files: copy /modules/module_that_is_subpanel/metadata/subpanels/delaut.php to /custom/modules/module_name/metadata/subpanels/default.php

Add following code to the field you want to be clickable

// sometimes adding 'link' => true works also
'widget_class' => 'SubPanelDetailViewLink',
'module' => 'moduleNameHere',