Thanks for this! I also tried to do a manual code edit. Here it is:
1.) Go to custom\modulebuilder\packages\<module_name>\module s\<my_mod>\vardefs.php
2.) Search the code of the field to be changed.
PHP Code:
'city' =>
array (
'required' => true,
'name' => 'city',
'vname' => 'LBL_CITY',
'type' => 'varchar',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => false,
'reportable' => true,
'len' => '20',
'size' => '20',
),
3.) Change 'type' => 'varchar' to 'type' => 'enum'.
4.) Add the ff properties to make it as a dropdown.
PHP Code:
'options' => 'dropdown_list',
'studio' => 'visible',
'dependency' => false,
5.) Go to module builder and press save.
Bookmarks