Has anyone or does anyone know if I can change the Opportunity field sales_stage
to a dynamic drop down?
Tony
Has anyone or does anyone know if I can change the Opportunity field sales_stage
to a dynamic drop down?
Tony
This is an answer my own question here. However, if I am doing this wrong please let me kown.
I edited the file custom/Extension/modules/Opportunities/Ext/Vardefs/_override_sugarfield_sales_stage.php and added this to the bottom:
$dictionary['Opportunity']['fields']['sales_stage']['type']='dynamicenum';
$dictionary['Opportunity']['fields']['sales_stage']['dbtype'] = 'enum';
$dictionary['Opportunity']['fields']['sales_stage']['options'] = 'sales_stage_dom';
$dictionary['Opportunity']['fields']['sales_stage']['parentenum']= 'serviceability_c';
I then did a Quick Repair & Rebuild and Studio now shows this as a DynamicDropdown.
I then edited the file sales_stage_dom in custom/include/language/en_us.lang.php and set the values to the DynamicDropdown format.
Seems to work just fine for me.
Is this correct?
Tony