Removing buttons From SugarCRM / SuiteCRM Detail View

SugarCRM, SuiteCRM Navin Rakhonde
Following Code will Remove the Fourth button from the Detailview of ModuleThis code should be placed in the display() function in the view.detail.php of the module in which we want to remove the button unset($this->dv->defs[‘templateMeta’][‘form’][‘buttons’][3]); $this->dv->process(); echo $this->dv->display(); Hope you find this blog post helpful. Feel free to add comments…
Read More

Custom button in detailview SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
It will be done by below steps only! Lets do this, STEP 1 : Add smarty variable in custom/modules/<desired_module>/metadata/detailveiwdefs.php as following, 'buttons' => array ( 5 => array ( 'customCode' => '{$mail_to_members}', ), ), Step 2 : We can assign the values to smarty variable in custom/modules/<desired_module>/views/view.detail.php and can use…
Read More

How to add JavaScript file in editview or detailview for any module in SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
It will be done by below steps only! Lets do this, STEP 1 : Add a reference to the JavaScript file which will be needed for event binding. Path for Edit View: custom/modules/<desired_module>/metadata/editviewdefs.php <?php $viewdefs['<desired_module>']['EditView']['templateMeta']['includes'] = array ( array ( 'file' => 'custom/modules/<desired_module>/js/editview.js', ), ); ?> Path for Detail View: custom/modules/<desired_module>/metadata/detailviewdefs.php <?php $viewdefs['<desired_module>']['DetialView']['templateMeta']['includes']…
Read More