AnsweredAssumed Answered

Dropdown visible on studio but won't list options in front end

Question asked by Jose Rosas on Apr 24, 2017
Latest reply on Apr 24, 2017 by Jose Rosas

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:

    '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.