Results 1 to 6 of 6

Thread: Adjusting text field size

  1. #1
    milkman82 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Adjusting text field size

    Hello all,

    I am new to SugarCRM and really love the software!

    Server: Microsoft Server 2003
    Sugar Suite: 4.5.1e
    Web Server: IIS6
    PHP: 5.2.3
    MySQL: 5.0


    I was editing my contact module in the studio. I added a new text area box which added fine. However, the box is too small to get a good view of the message written. I was wondering if there is a way to edit the text field size? Right now it is only about 23 characters wide. I would like it some where around 50 or 60 characters wide?

    Thanks!


    Mike

  2. #2
    aleksserbia is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    30

    Default Re: Adjusting text field size

    Hi Mike,
    i think this would help you,
    go to modulename\vardefs.php ,you will find there a list for all fields in the module ,so find field and change or add an attribute 'len' => '50' ,
    there is another thing, if you don't find your field here than go to custom\modulename\vardefs.php because sugar studio puts there all new custom fields, and edit 'len',
    good luck
    alex

  3. #3
    milkman82 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: Adjusting text field size

    Hi Aleksserbia,


    Thank you for the quick reply!

    I found the module under module/contacts

    However, the strange thing is, it's not listed the box I want to edit! I am for sure it's under contacts I double checked. The other problem is I tried editing the "len=>" on the address field to see if the box size would change. But nothing changed, I think that just edits the maximum text allowed. But not the size of the text box window


    Mike

  4. #4
    aleksserbia is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    30

    Default Re: Adjusting text field size

    hi mike,
    i will check it out again about box, i think that you need t change type of box , i mean instead edit box you will need text area,it means you need to change type for your field ,
    another thing , custom fields that you added to sugar are in
    custom\modules\vardefs.php
    i will post you again to solve box problem.
    alex

  5. #5
    milkman82 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: Adjusting text field size

    Hi Alex,

    Ok, I check out the directory you told me, I am not finding any vardefs.php. If i goto custom/modules it looks more like custom/modules/contacts/language/en_us_language.php nothing really appears useful to edit in there. It's all mod_strings.

    However, I started browsing around the custom directory and if you go custom/working/modules/contacts/editview.html

    There is a area where you can edit the text box size which is what I am looking for misc_details I changed the values to rows="8" and col="60" But that still did not change the text box size for misc details when I logged into sugarcrm.

    PLEASE let me know if you find anything else!

    Thanks!

  6. #6
    milkman82 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: Adjusting text field size

    Nevermind that was it. When I went back to sugarcrm and then admin - studio - edit module - contacts - edit layout - edit view

    the box size was changed in there. I just click save and publish then went back to Contacts and add new the misc details box was much bigger now.

    I thank you for your help. Could not have found that without you directing me to that area!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding Text Area Field
    By shorty114 in forum Help
    Replies: 1
    Last Post: 2007-10-12, 07:33 PM
  2. Replies: 1
    Last Post: 2006-05-03, 04:34 AM
  3. Changing the size of a Sugar field
    By roberrington in forum Help
    Replies: 0
    Last Post: 2006-01-10, 07:05 PM

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
  •