Results 1 to 2 of 2

Thread: Request for ability to control fields better

  1. #1
    tmori is offline Member
    Join Date
    Aug 2009
    Posts
    12

    Default Request for ability to control fields better

    Specifically, text areas in the edit mode are small. Would like to be able to resize them.

    Thanks!

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Request for ability to control fields better

    You cannot do this through Studio, but you can do this fairly simply in the code. (I vaguely recall that 6.0 plans to add this to Studio, but check that).

    Modify editviewdefs.php for your module containing the field whose size you want to change and add a section for displayParams with the size you want. For example, here are two examples from my Accounts module from the fiile <sugarroot>/custom/modules/Accounts/metadata/editviewdefs.php:

    PHP Code:
          6 => 
          array (
            
    => 
            array (
              
    'name' => 'description',
              
    'displayParams' => 
              array (
                
    'cols' => 80,
                
    'rows' => 6,
              ),
              
    'label' => 'LBL_DESCRIPTION',
            ),
          ), 
    PHP Code:
          8 => 
          array (
            
    => 
            array (
              
    'name' => 'seats_mzcad_ml_c',
              
    'displayParams' => 
              array (
                
    'size' => 6,
              ),
              
    'label' => 'LBL_SEATS_MZCAD_ML',
            ), 
    The first sample sets a bigger rows and columns for the description field. The second example sets the size for a custom field in a text box (rather than a textarea).

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dev Request: Ability to Assign User to a Note
    By khamel in forum Classifieds
    Replies: 2
    Last Post: 2008-02-04, 12:50 PM
  2. Lost ability to update custom fields
    By eaho in forum Help
    Replies: 2
    Last Post: 2007-05-17, 07:08 PM
  3. Ability to export fields from any tab
    By merlin in forum Help
    Replies: 0
    Last Post: 2006-05-19, 03:48 PM
  4. Feature request - ability to add folders
    By lmewshaw in forum Project Management
    Replies: 3
    Last Post: 2006-04-08, 11:17 PM
  5. Replies: 0
    Last Post: 2005-10-16, 10:17 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
  •