How to populate dropdown value from related module’s dropdown value

Last Modified Date

Hey there, are you looking for options to populate the dropdown value from related module’s dropdown value, you call for the basic knowledge of coding for this. In case you possess it, the answer is correctly here:

1.   Go to Custom Extension.
2.   Open the Modules folder.
3.   Choose your desired module directory.
4.   Pass to Ext/Vardef and place a PHP file there comprising this code:

$dictionary['Contact']['fields']['account_type_c'] = array(
'name' => 'account_type_c',
'dbType' => 'non-db',
'source' => 'non-db',
'type' => 'relate',
'vname' => 'LBL_ACCOUNT_TYPE',
'link' => 'accounts',
'module' => 'Accounts',
'rname' => 'account_type',
'studio' => 'visible',

For a reference, you can have a look at some of the documents in Sugar Community:

  1. //
  2. //

Rolustech is a SugarCRM Certified Developer & Partner Firm. We have helped more than 600 firms with various SugarCRM integrations and customization. Get in touch today for your FREE Business Analysis. We will be happy to assist you!

Need Help? Get a Free Consult

By clicking you agree to our Terms and Conditions

Send me news and updates

How can we help you?

Contact Sales

  • US +1 415 800 4489
  • UK +44(0)207-993-8524
  • PK +92(0)423-640-7166

Looking For a Job?