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

How to call JavaScript function from editviewdefs field of 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: custom/modules/<desired_module>/metadata/editviewdefs.php <?php $viewdefs['<desired_module>']['EditView']['templateMeta']['includes'] = array ( array ( 'file' => 'custom/modules/<desired_module>/js/editview.js', ), ); ?> Step 2 : Add the JavaScript file you…
Read More