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

  • Home
  • Blog
  • How to populate dropdown value from related module’s dropdown value
HOW TO POPULATE DROPDOWN VALUE FROM RELATED MODULES DROPDOWN VALUE

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. //developer.sugarcrm.com/2012/01/26/howto-grab-fields-from-a-related-record-into-your-detailview/
  2. //developer.sugarcrm.com/2012/03/13/howto-grab-fields-from-a-related-record-without-sugar-logic/

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!