How to populate dropdown value from related module’s dropdown value
By Amer Wilson
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:
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!