Thanks Superman,
I had tried that with modules/Opportunities/metadata/detailviewdefs.php, but it did not seem to work. Should I have cleared a cache somewhere?
I tried adding to the code below, and editing it but nothing happened... In fact I have tested emptying the whole file, and no change was observed. This lead me to cache cleaning, which I also tried but to no avail...
PHP Code:
$viewdefs['Opportunities']['DetailView'] = array(
'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE',
array('customCode'=>'<input title="{$APP.LBL_DUP_MERGE}" ' .
'accesskey="M" ' .
'class="button" ' .
'onclick="this.form.return_module.value=\'Opportunities\';this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" ' .
'name="button" ' .
'value="{$APP.LBL_DUP_MERGE}" ' .
'type="submit">'),
)),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
),
Bookmarks