SugarCRM How To Add Custom JS Files

Do you like this?

Summary:
SugarCRM is a highly customisable enterprise software. You can change and add extra custom actions into the system by adding custom Javascript files. This article shows you how to add custom Javascript files into your module.


Content:

Depending on which view you are customising, you have to change the corresponding file. For example, if you are editing the DetailView of the Accounts module, the following file is what you have to use:

<sugar_crm_installation>/custom/modules/Accounts/metadata/detailviewdefs.php
This is the code you have to add into the file:
array('file'=>'custom/modules/Accounts/metadata/your-javascript-file.js'),

 
comments powered by Disqus