从Studio SugarCRM隐藏布局中的字段
我想隐藏studio中Leads模块上的status字段。 我已尝试使用以下代码:从Studio SugarCRM隐藏布局中的字段,sugarcrm,Sugarcrm,我想隐藏studio中Leads模块上的status字段。 我已尝试使用以下代码: $dictionary[“Lead”][“fields”][“status”]=数组( “studio”=>“隐藏”, ); 但该字段在leads模块的Editview、Detailview和Listview布局上仍然可见。我还尝试了以下代码 $dictionary[“Lead”][“fields”][“status”][“studio”]=array( “编辑视图”=>false, “detailview”=>
$dictionary[“Lead”][“fields”][“status”]=数组(
“studio”=>“隐藏”,
);代码>
但该字段在leads模块的Editview、Detailview和Listview布局上仍然可见。我还尝试了以下代码
$dictionary[“Lead”][“fields”][“status”][“studio”]=array(
“编辑视图”=>false,
“detailview”=>false,
“listview”=>false,
);代码>
但是状态字段在布局上仍然可见吗?
是否有其他方法可以在工作室中隐藏该字段?
感谢您的期待。首先,您需要为Lead创建一个扩展的vardef:
custom/Extension/modules/Leads/ext/Vardefs/Vardefs.ext.php
然后将其填入:
<?PHP
$dictionary['Lead']['fields']['status']['studio'] = 'invisible';
?>
试试看
这在Sugar 6.5中当然有效。嗨,我试过你的解决方案,但不起作用。此外,我还尝试将“不可见”值设置为空数组,这也不起作用。
<?PHP
$dictionary['Lead']['fields']['status']['studio'] = false;
?>