Results 1 to 4 of 4

Thread: Adding Description Field to Side Create View sidecreateviewdefs.php

  1. #1
    joshpetru is offline Member
    Join Date
    Jan 2009
    Posts
    10

    Cool Adding Description Field to Side Create View sidecreateviewdefs.php

    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...
    Attached Images Attached Images  
    Last edited by joshpetru; 2009-08-06 at 06:23 PM.

  2. #2
    joshpetru is offline Member
    Join Date
    Jan 2009
    Posts
    10

    Default Re: Adding Description Field to Side Create View sidecreateviewdefs.php

    Anyone? Come on guys I see everyone answer crazy workflow questions, this should be a piece of cake. I've had enough views that some should know the answer .

  3. #3
    shamimwilson is offline Sugar Community Member
    Join Date
    Mar 2009
    Location
    Banglore India
    Posts
    235

    Default Re: Adding Description Field to Side Create View sidecreateviewdefs.php

    hi

    try to add the code something like this


    array (
    array('name'=>'description', 'type' => 'text', 'displayParams'=>array('rows'=>1,'cols' => 10, )),
    ),


    then repair and rebuild.

    hope this will help you

  4. #4
    joshpetru is offline Member
    Join Date
    Jan 2009
    Posts
    10

    Thumbs up Re: Adding Description Field to Side Create View sidecreateviewdefs.php

    Worked like a charm! You da Man! Thanks a ton , I know it was simple...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2011-03-18, 02:48 PM
  2. Remove side create view from home
    By ffletch in forum Help
    Replies: 11
    Last Post: 2009-03-10, 03:35 PM
  3. Replies: 5
    Last Post: 2009-03-10, 02:51 AM
  4. Replies: 2
    Last Post: 2008-11-25, 07:05 PM
  5. Replies: 2
    Last Post: 2006-05-03, 04:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •