Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cases我在我的环境中有一个名为的模块,SugarCRM它有几个字段,如name、id、account_name、等date_created,description还有一个名为 的自定义字段custom_account_number。
Cases
SugarCRM
name
id
account_name
date_created
description
custom_account_number
我想将其值设置为account_name字段之一,如何使用自定义文件夹中的自定义 php 脚本来做到这一点?
如果您使用的是 Sugar 7.2 ,那么很简单,
1 . 转到Admin->Studio->Modulename->fields->Select custom field。 2 . check计算值,然后单击Edit Formula。 3 . 从字段中选择您的姓名字段。 4 . 然后部署它。
Admin->Studio->Modulename->fields->Select custom fiel
check
Edit Formula
现在转到您的模块并保存您的名称,它也会出现在您的自定义字段中。
我没有在社区版上工作但我可以给你一个想法,你必须写一个logic hook after save,在那个钩子中你可以编写逻辑来将名称复制到你的自定义字段。
logic hook after save
欲了解更多信息逻辑挂钩点击这里...