Is there a way to remove Convert Lead for a particular role
Is there a way to remove Convert Lead for a particular role
Last edited by cff_moiseszaragoza; 2011-03-07 at 05:05 PM.
custom/modules/Leads/metadata/detailviewdefs.php
look for a array named buttons
PHP Code:array (
'buttons' =>
array (
0 => 'EDIT',
//1 => 'DUPLICATE', // MZ
2 => 'DELETE',
3 =>
array (
//'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
),
4 =>
array (
'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
),
5 =>
array (
//'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
),
),
This is working for now but there is a problem
people in a role need it and people in another role don't
so there has to be a better way to do this
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks