Hi all, I have declared a custom drop down field with the following code in /custom/Extension/modules/GDLF_Gandalf_Table/Ext/Vardefs/customfields.php:
$dictionary['GDLF_Gandalf_Table']['fields']['gandalf_table_type_c']=[
'name' => 'gandalf_table_type',
'label' => 'LBL_GANDALF_TABLE_TYPE',
'type' => 'enum',
'default_value' =>'decision',
'ext1' => 'gandalf_table_type_list',
'custom_module' => 'GDLF_Gandalf_Table',
];
Then I declared the option list in /custom /Extension/application/Ext/language/en_us.Gandalf.php
$app_list_strings['gandalf_table_type_list'] = [
'scoring' => 'scoring',
'decision' => 'decision'
];
I am able to see the field as a dropdown in the sugar Studio. I can also see the correct dropdown options list and correct options created in the $app_list_strings arrays. But when I go the edit view on the front-end I see the dropdown label but the option list is empty. Its a <select> with no options.
Only way I can get it to work is to click save from within the sugar Studio. I need this to work after a rebuilt or after installation. Any ideas what could be going wrong?
Thank you.