Results 1 to 7 of 7

Thread: How to change the type of a field?

  1. #1
    ywingate is offline Member
    Join Date
    Jun 2008
    Posts
    6

    Question How to change the type of a field?

    Sugar 5.0 on Linux.
    Dropdown lists in Basic Search and Advanced Search are displayed as multiple selection.
    How can I change a field to be single selection (i.e. multiple=false) and size=1?

    Thanks for any help!!

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

    Default Re: How to change the type of a field?

    Quote Originally Posted by ywingate
    How can I change a field to be single selection (i.e. multiple=false) and size=1?
    Hi,
    what do you mean by "size=1"?
    What do you think the cookie monster eats ?

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: How to change the type of a field?

    size=1 is HTML language.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

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

    Default Re: How to change the type of a field?

    Quote Originally Posted by SugarDev.net
    size=1 is HTML language.
    I wonder what this has to do with converting a multiselect to a text field.
    What do you think the cookie monster eats ?

  5. #5
    whiteFwolf is offline Member
    Join Date
    Jun 2008
    Posts
    18

    Default Re: How to change the type of a field?

    Hey...I have the same problem. When I put a dropdown to a basic search layout it is displayed as Multiple Select.

    I want to be a dropdown.

    Is it a way to do that??

  6. #6
    whiteFwolf is offline Member
    Join Date
    Jun 2008
    Posts
    18

    Default Re: How to change the type of a field?

    I found it out...

  7. #7
    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: How to change the type of a field?

    Hi ywingate

    You can copy the include/SugarFields/FIelds/Enum to the include/SugarFields/FIelds/SingleEnum.

    Modify the Field class to reflect its own name and no more the Enum class, and modify the path for their templates.

    In the SearchForm.tpl remove the multiple attribute.

    In the searchfieldsdefs.php set the 'type' => 'SingleEnum'

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Howto Change Custom Field Data Type
    By andreasw in forum General Discussion
    Replies: 9
    Last Post: 2011-10-12, 04:07 PM
  2. Is it a bug? Change the type of a custom field
    By ToniFatec in forum Developer Help
    Replies: 0
    Last Post: 2008-05-06, 03:17 PM
  3. Replies: 1
    Last Post: 2007-05-01, 05:34 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
  •