phpsugarcrm

Autofill Office Phone in SugarCRM Contact Module


Can anyone tell me how I can have an office phone automatically fill in a Contact when we select an Account name?


Solution

  • It should do that automatically. Look in /modules/Contacts/metadata/editviewdefs.php, and you should see the following.

        array (
            'name' => 'account_name',
            'displayParams' =>
            array (
              'key' => 'billing',
              'copy' => 'primary',
              'billingKey' => 'primary',
              'additionalFields' =>
              array (
                'phone_office' => 'phone_work',
              ),
            ),