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

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

By

69 views

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 these documents:

  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/

 

Get in touch



Please leave this field empty.

CONTACT INFORMATION