Dropdown values in customCode

SugarCRM, SuiteCRM Navin Rakhonde
Came across an interesting question which led me to check and write a blog post. Translate enum value to display in customCode It is a two step solution. Step 1: Create / Edit custom/modules/Accounts/view.detail.php add following code in function display. function display(){ global $app_list_strings; $this->ss->assign('APP_LIST', $app_list_strings); // ...... // ......…
Read More

Getting dropdown options in Javascript

SugarCRM, SuiteCRM Navin Rakhonde
At times, We have ran into requirement of getting drop down options of a field in Javascript in SugarCRM. Here is the code that will get you options as an array. For example, you want to fetch values of case_status_dom, the code will be, var statusOptions = SUGAR.language.languages.app_list_strings['case_status_dom']; alert(statusOptions['Closed']); //…
Read More