Nick, this worked out fine. I had to modify the file $SUGAR_HOME/modules/cuspk_Grants/metadata/sidecreateviewdefs.php like this:
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
global $mod_strings;
$viewdefs['cuspk_Grants']['SideQuickCreate'] = array(
'templateMeta' => array('form'=>array('buttons'=>array('SAVE'),
'button_location'=>'bottom',
'headerTpl'=>'include/EditView/header.tpl',
'footerTpl'=>'include/EditView/footer.tpl',
),
'maxColumns' => '1',
'panelClass'=>'none',
'labelsOnTop'=>true,
'widths' => array(
array('label' => '10', 'field' => '30'),
),
),
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// this portion after this marker was changed. After changing the fields, the sidepanel also changed accordingly
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
'panels' =>array (
'DEFAULT' =>
array (
array(^
array('name'=>'project_name', 'displayParams'=>array('required'=>true,'size'=>20), 'selectOnly'=>true),
),
array (
array('name'=>'grant_amount','displayParams'=>array('required'=>true, 'size'=>20)),
),
array (
array('name'=>'grant_date', 'displayParams'=>array('required'=>true, 'size'=>11, 'selectOnly'=>true)),
),
),
)
);
?>
Now, the sidepanel looks like this: http://www.sugarcrm.com/forums/attac...tid=3522&stc=1
Bookmarks