[Vtigercrm-developers] vt7 Overriding Javascript Classes

Alan Lord alanslists at gmail.com
Tue Jun 27 14:11:16 GMT 2017

I need to override the searchModuleNames functions so that I can pass 
some extra data during type-ahead search in reference fields.

This function is included in two files:


(The one in Detail.js I don't think actually ever gets used.)

So how do override the one in Vtiger.js?

Do I create a

/layouts/v7/modules/MyModuleName/resources/MyModuleName.js file and 
inherit from Vtiger_Index_Js?

The Detail.js override wont work because it the searchModuleNames 
function is already loaded via the registerAutoCompleteFields in Vtiger.js

Cluebat anyone?



More information about the vtigercrm-developers mailing list