I did a migration of SugarCrm from 6 to 7.6.1 for my customer, i have lost custom codes. I tried to add custom code but it does'nt work. I added my custom code for field name in account, but nohting happens.
this is my editviewdefs.php:
$viewdefs['Accounts']['EditView'] = array(
'templateMeta' => array(
'form' => array('buttons'=>array('SAVE', 'CANCEL')),
'maxColumns' => '2',
'useTabs' => true,
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
'includes'=> array(
array('file'=>'modules/Accounts/Account.js'),
),
),
'panels' => array(
'lbl_account_information' =>
array (
array (
array (
'name' => 'name',
'label' => 'LBL_NAME',
'displayParams' =>
array (
'required' => true,
),
'customCode' => '{literal}<script language="javascript">function calcUpperAccount(newValue, form) {
form.name.value = form.name.value.toUpperCase();
}</script>{/literal}
{if is_null($fields.name.value) || $fields.name.value == ""}{assign var="accountname" value=""}{else}{assign var="accountname" value=$fields.name.value}{/if}
<input type=\'text\' name=\'name\' id=\'name\' onchange=\'calcUpperAccount(this.value, EditView);\' size=\'30\' maxlength=\'25\' title=\'\' tabindex=\'3\' value = \'{$accountname}\'>
',
),
array (
'name' => 'phone_office',
'label' => 'LBL_PHONE_OFFICE',
),
),
Idid a quick and repair and ctrl+f5
Can you help me?.