Okay, sure.
I had to revert to OEM Sugar install to find it as we did away with the salutations
in our production crm ages ago, but it looks pretty straigt forward provided:
One of the option values for the dropdown in question is stored in a corrispoinding field in the corrisponding table FOR the current record ie (custom_table.custom_field WHERE custom_table.id = $focus->id )
And you have something like
PHP Code:
//
$xtpl->assign("CUSTOM_FIELD_OPTIONS", get_select_options_with_id($app_list_strings['custom_field_dom'], $focus->custom_field));
//
in CutomModuel/EditView.php
And something like
PHP Code:
//
<select name='custom_field'>{CUSTOM_FIELD_OPTIONS}</select>//
in your CutomModuel/EditView.html
but I could be wrong.
Bookmarks