在Vtiger7中,vtigercrm/index.php的edit.js文件的位置是什么?module=Leads&;查看=编辑

在Vtiger7中,vtigercrm/index.php的edit.js文件的位置是什么?module=Leads&;查看=编辑,vtiger,vtigercrm,Vtiger,Vtigercrm,我是新手。我想设置铅源的名称(下拉列表)。选择值。但是我在这个路径中找不到edit.js文件layout>v7>modules>leads>resources>???这里只有Details.js可用。 我打开了vtigercrm\layouts\v7\modules\Vtiger\resources\Edit.js这里是获取文件,但没有获取字段 我做什么 在/layouts/vlayout/modules/Leads/resources/ js文件的格式如下所示: Vtiger_Edit_Js(

我是新手。我想设置铅源的名称(下拉列表)。选择值。但是我在这个路径中找不到
edit.js
文件
layout>v7>modules>leads>resources>
???这里只有
Details.js
可用。 我打开了
vtigercrm\layouts\v7\modules\Vtiger\resources\Edit.js
这里是获取文件,但没有获取字段


我做什么

/layouts/vlayout/modules/Leads/resources/

js文件的格式如下所示:

Vtiger_Edit_Js("Leads_Edit_Js",{
},{

getLeadSource : function(container) {
    var thisInstance = this;
    var form = jQuery('#EditView');
    var lead_source = container.find("select[name='lead_source_field_name_here'] :selected").val();
    console.log(lead_source);
}

    /**
 * Function which will register basic events which will be used in quick create as well
 *
 */
registerBasicEvents : function(container) {
        this._super(container);
        this.getLeadSource(container);

    } });

我认为您可以在vtigercrm/modules/leads/resources/(您必须创建resources目录)中创建一个名为Edit.js的文件。您可以在那里放置自定义代码。