We want to make a href on Name at Target module list view. how to make it.
I suppose your Targets (Prospects) module had been customized somehow once the field name is a link by default.
Make sure the field "name" at file custom/modules/Prospects/clients/base/views/list/list.php looks like that:
array( 'name' => 'name', 'type' => 'fullname', 'fields' => array( 'salutation', 'first_name', 'last_name', ), 'link' => true, 'css_class' => 'full-name', 'label' => 'LBL_LIST_NAME', 'enabled' => true, 'default' => true, ),
Thanks. It is working.
I have one more question -
I created a custom field "Status" in Target module with options such as "Converted", "Disqualified","Active".
We want to hide Converted option as Lead module status. Once target is converted then only it should be visible. Please tell me how to achieve this feature.
Let me make sure I got the point.
You would like to hide any Target which has been converted to Lead?
I can seee 2 possibiliies:
Configure a logic_hook after_save on Targets which mark it as deleted once converted to Lead or
Create a custom filter api (CustomProspectsFilterApi.php) the way you inject a hardcoded filter which ignores Converted Targets:
$additionalFilters = [ 'status_c' => ['$not_in' => 'Converted'] ];
We just want to hide option when create or edit the target. If target convert to lead then it should display as Converted.
This can be accomplished through Dependency SetOptions.
Retrieving data ...