5/30/2023 0 Comments Suitecrm calculated fieldsMake sure we are using the correct relationship names and field names when we are adding the code in the Vardefs. This code can be applied for any type of the field in any module. Phone_office is the field name of the Office Phone field in the Accounts module. Phone_work is the field name of the Office Phone field in the Contacts module. Let us understand a bit more about the parameters used in this file.Īccount_name refers to the relationship name of the Contacts and Accounts. This is quite simple by using the populate_list which triggers the logic whenever the account is changed in the Contact or linked to it.Ĭreate the file in the below path and add this code./ custom/Extension/modules/Contacts/Ext/Vardefs/ If we want to populate the data to the Office Phone field in the Contacts module the same as the office phone in the Accounts module. Similarly we may come across the need to populate the other field’s data from Account to Contact record. By default in SugarCRM when we are creating the Contact record, it auto-populates the address of the Account to the Contact record. We have a parent-child relationship between the Accounts and Contacts module (one too many relationships). We often have a requirement to populate the fields data of the related module on change of the related field in the current module.
0 Comments
Leave a Reply. |