Results 1 to 2 of 2

Thread: Drop Down Boxes - Increasing Width

  1. #1
    gnorman2000 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    11

    Default Drop Down Boxes - Increasing Width

    Hello,

    I running Sugar OS 5.0b, I need to change the width of the dropdown boxes so all the items will show in full, The width of the fields are varchar 30. How do I change the width so all my items will show up in the boxes in full,

    Thanks

    Garry

  2. #2
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: Drop Down Boxes - Increasing Width

    Quote Originally Posted by gnorman2000
    Hello,

    I running Sugar OS 5.0b, I need to change the width of the dropdown boxes so all the items will show in full, The width of the fields are varchar 30. How do I change the width so all my items will show up in the boxes in full,

    Thanks

    Garry
    Hi,
    I've never changed a dropdown's width, but I suppose it can be done the same way as other fields. So everything I'm telling you here is just a supposition, you'll need to check if it's correct or not.
    You can change a field's width editing editviewdefs.php and/or detailviewdefs.php files.
    For example, if you need to modify a dropdown in the Accounts module, open
    <sugar-root>\modules\Accounts\metadata\editviewdefs.php
    and see if your dropdown is defined in there. If not, open
    <sugar-root>\custom\modules\Accounts\metadata\editviewdef s.php
    and you'll surely find it there.
    For text fields, the width is specified with the code:
    'cols' => xx,
    where xx is the number of columns/chars of the field.
    So I suppose that if you add such code in your dropdown description it should work...
    Code:
    array (
    				  0 => 
    				  array (
    				  'name' => 'My_Dropdown',
    				  'label' => 'LBL_MYDROPDOWN',
    				  'cols' => '50',
    				  ),
    Let me know if it worked.
    What do you think the cookie monster eats ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't create custom drop down lists
    By FRLaurent in forum Help
    Replies: 2
    Last Post: 2008-02-12, 10:13 AM
  2. Manually drop scheme (5.0 upgrade) ?
    By niallhannon in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-01-07, 05:41 PM
  3. Problem reverting edit view to single select drop down lists
    By yabulurie in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-05-20, 10:17 PM
  4. add the contents of 4 drop down list in one field
    By Spy123 in forum Developer Help
    Replies: 0
    Last Post: 2007-01-24, 11:06 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
  •