Results 1 to 8 of 8

Thread: Modify Size Of 'TextArea' Fields

  1. #1
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Question Modify Size Of 'TextArea' Fields

    Hi All,

    Is it possibe to expand the size of the TextArea so it takes up the entire width of the page rather than half of it?

    Many Thanks

  2. #2
    Superman's Avatar
    Superman is online now Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: Modify Size Of 'TextArea' Fields

    upgrade safe solution: indicate cols/rows in /modules/{module}/metadata/editviewdefs.php indicating 'displayParams'=>array('cols'=>40, 'rows'=>4')

    if you want to use style="width:100%" then you'd have to modify include/SugarFields/Fields/Text/EditView.tpl
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

  3. #3
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: Modify Size Of 'TextArea' Fields

    hi
    you can put it on
    custom/modules/(YOUR_MODULE)/metadata/editviewdefs.php

    array(
    array('field' => 'UR_FIELD_NAME', 'displayParams' => array('rows' => '??', 'cols' => '??'))
    ),


    ?? provide the size of Your choice

    it will help you.
    Thanks
    Best Regards
    ---------------------------------------
    Jaydeepsinh Sagar

  4. #4
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Default Re: Modify Size Of 'TextArea' Fields

    Hi All,

    Thanks for your replys, can you give me an example of where i would actually insert the code into the file?

    Many Thanks

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Modify Size Of 'TextArea' Fields

    For instance, to change the width of the description field in Accounts go to custom/modules/Accounts/metadata/editviewdefs.php and find and edit the following code:
    PHP Code:
          'lbl_description_information' => 
          array (
            
    => 
            array (
              
    => 
              array (
                
    'name' => 'description',
                
    'displayParams' => 
                array (
                  
    'cols' => 80,
                  
    'rows' => 6,
                ),
                
    'label' => 'LBL_DESCRIPTION',
              ),
            ),
          ), 
    Just change the 'cols'=>80, to how wide you would like it to be. If you don't see an editviewdefs.php file in the metadata folder (because you haven't done any Studio changes for that file yet) the easiest thing to do is copy the editviewdefs.php file from modules/YOURMODULE/metadata to custom/modules/YOURMODULE/metadata.

  6. #6
    DanielAnaJet is offline Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default Re: Modify Size Of 'TextArea' Fields

    Hi,

    I too am trying to change the size of textarea. I am trying to follow the instructions mentioned in this thread however, when I go to the /modules directory, there is nothing in there.

    I am running SugarCRM 5.2.0c (orginally 4.5.1, updated incrementally all the up to 5.2.0c) on Ubuntu. When I browse to /var/www/SugarCRM/modules, there is no files at all.

    Can anyone help me locate where the files I need to edit.

    Thanks,

  7. #7
    abssorb is offline Junior Member
    Join Date
    Mar 2010
    Posts
    2

    Default Re: Modify Size Of 'TextArea' Fields

    Sorry to reopen an old thread. It's the only one I could find.

    I'm trying to do this for LBL_DESCRIPTION in opportunities in Version 5.5.0a.

    I have tried editing {path}/modules/Opportunities/metadata/editviewdefs.php

    It already has a description entry:
    Code:
           array (
          'description',
          
          
        ),
    I'm not a coder. I've tried adding various versions of...
    Code:
    array(
    array('field' => 'LBL_DESCRIPTION', 'displayParams' => array('rows' => '12', 'cols' => '40'))
    ),
    And rebuilding the database, but nothing seems to change it. Any advice appreciated.

  8. #8
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: Modify Size Of 'TextArea' Fields

    hi,
    you said you rebuild the database, but you need to clear the cache.
    try this admin->repair->Quick Repair and Rebuild.

    it will clear the cache.
    Best Regards
    ---------------------------------------
    Jaydeepsinh Sagar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. textarea
    By Edwar in forum Español
    Replies: 0
    Last Post: 2008-10-22, 03:18 PM
  2. Replies: 4
    Last Post: 2008-07-25, 02:35 PM
  3. How to manually change max size of custom fields
    By AlexT in forum Developer Help
    Replies: 1
    Last Post: 2006-08-16, 08:03 AM
  4. Size of Database fields
    By wokkie in forum Feature Requests
    Replies: 1
    Last Post: 2004-09-15, 02:35 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
  •