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

Dropdown values in customCode

SugarCRM, SuiteCRM Navin Rakhonde
Came across an interesting question which led me to check and write a blog post. Translate enum value to display in customCode It is a two step solution. Step 1: Create / Edit custom/modules/Accounts/view.detail.php add following code in function display. function display(){ global $app_list_strings; $this->ss->assign('APP_LIST', $app_list_strings); // ...... // ......…
Read More