SUGARCRM: INCLUDE JAVASCRIPT FILE ON LISTVIEW

SugarCRM, SuiteCRM Navin Rakhonde
How to call JavaScript on List View? It will be done by one step only! Lets do this, Step 1 : Steps are as below, As it is SugarCRM's module, copy modules/<desired_module>/views/view.list.php to custom/modules/ <desired_module>/views/view.list.php or edit if it already exists at custom/modules/<desired_module>/views/view.list.php <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid…
Read More

Mark a field Required only for new records

SugarCRM, SuiteCRM Navin Rakhonde
How to make a field mandatory only if creating a record? For example lets make "Office phone" required Lets do this, Steps are as below, 1.Add a reference to the JavaScript file which will be needed for event binding. Path: custom/modules/<desired_module>/metadata/editviewdefs.php <?php $viewdefs['<desired_module>']['EditView']['templateMeta']['includes'] = array ( array ( 'file' => 'custom/modules/<desired_module>/js/editview.js', ), );…
Read More