Hey everyone, This is my first post so bare with me! I'm trying to add the description field to the side create view. It adds fine with the below code:
$viewdefs['Leads']['SideQuickCreate'] = array(
'templateMeta' => array('form'=>array('buttons'=>array('SAVE'),
'headerTpl'=>'include/EditView/header.tpl',
'footerTpl'=>'include/EditView/footer.tpl',
'button_location'=>'bottom',
),
'maxColumns' => '1',
'panelClass'=>'none',
'labelsOnTop'=>true,
'widths' => array(
array('label' => '10', 'field' => '30'),
),
),
'panels' =>array (
'DEFAULT' =>
array (
array (
array('name'=>'first_name', 'displayParams'=>array('size'=>20)),
),
array (
array('name'=>'last_name', 'displayParams'=>array('required'=>true, 'size'=>20),
),
),
array (
array('name'=>'phone_work', 'displayParams'=>array('size'=>20)),
),
array (
array('name'=>'email1', 'customCode'=>'<input type="text" name="emailAddress0" size=20><input type="hidden" name="emailAddressPrimaryFlag" value="emailAddress0"><input type="hidden" name="useEmailWidget" value="true"><script language="Javascript">addToValidate("form_SideQuic kCreate_Leads", "emailAddress0", "email", false, SUGAR.language.get("app_strings", "LBL_EMAIL_ADDRESS_BOOK_EMAIL_ADDR"));</script>'),
),
array (
array('name'=>'assigned_user_name', 'displayParams'=>array('required'=>true, 'size'=>11, 'selectOnly'=>true))
),
array (
array('name'=>'description', 'displayParams'=>array('size'=>20)),
),
),
)
But it ends up looking like the attachment. I will also be adding this to the op's module so any incite into that one would also be grateful. I'm sure this is a simple 'field'=> ??? that I'm missing or something. Thanks in advance. O also... On Pro, 5.2.0, Apache 2.0, Mysql 5.0, Linux...


LinkBack URL
About LinkBacks



Reply With Quote
.

Bookmarks