Results 1 to 4 of 4

Thread: increasing width of 'industry' select field

  1. #1
    infosud is offline Junior Member
    Join Date
    Jan 2012
    Posts
    5

    Default increasing width of 'industry' select field

    Hi everyone.

    I'm using sugar CRM 6.3, and I have a problem in the advanced search of accounts. I have a <SELECT> field, but the text inside is too longer, and we cannot see what is writted.

    So, I'm trying to increase the width of this field, but I don't know where to search.



    I tried to modify

    Code:
    html_options name='industry_advanced[]' options=$fields.industry_advanced.options size="6" style="width: 150px" multiple="1" selected=$fields.industry_advanced.value
    in ..../sugar/cache/modules/Accounts/SearchForm_advanced.tpl
    But nothing happened...

    What can I do ?

    thanks for your support

    Vincent

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: increasing width of 'industry' select field

    Modifying cached script will not work, you must create a custom field template instead.
    Copy the folder include/SugarFields/Fields/Enum to custom/include/SugarFields/Fields/Enum and modify the style inside SearchView.tpl.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    infosud is offline Junior Member
    Join Date
    Jan 2012
    Posts
    5

    Default Re: increasing width of 'industry' select field

    Hi, sorry to be late.

    Thanks for your help.

    I made what you said, but the enum field has not a better width. I tried to modify this code :

    style="width: 150px"

    I tried to tip "300px" instead of 150, but nothing happened.
    I try to delete this field trought studio and create it again, but still nothing.

    My boss also gave me another thing to do instead of this.

    When I add the "industry" field in the advanced search using Studio, it makes an ENUM field. I wish to have a TEXT field instead.
    If I found a solution for this problem, the first one will not have to be solved.

    Thanks for your help.

    Regards

    Vincent

  4. #4
    infosud is offline Junior Member
    Join Date
    Jan 2012
    Posts
    5

    Default Re: increasing width of 'industry' select field

    Quote Originally Posted by infosud View Post
    Hi, sorry to be late.
    My boss also gave me another thing to do instead of this.

    When I add the "industry" field in the advanced search using Studio, it makes an ENUM field. I wish to have a TEXT field instead.
    If I found a solution for this problem, the first one will not have to be solved.
    My problem is solved !

    I added 'type' => 'name', in the industry array in file /custom/modules/Accounts/metadata/searchdefs.php

    Bye

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Multi-Select Custom Field Width
    By ashgreen in forum Help
    Replies: 12
    Last Post: 2011-10-10, 11:42 AM
  2. newbie: can there be Industry Manager who can access accounts by Industry?
    By liming2006@gmail.com in forum Sales Force Automation
    Replies: 0
    Last Post: 2011-05-02, 04:22 PM
  3. Replies: 2
    Last Post: 2011-03-10, 04:45 PM
  4. Increasing field width in Account Module
    By john.phortse in forum Help
    Replies: 1
    Last Post: 2009-09-12, 01:15 AM
  5. Drop Down Boxes - Increasing Width
    By gnorman2000 in forum Help
    Replies: 1
    Last Post: 2008-03-10, 09:13 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
  •