Results 1 to 4 of 4

Thread: Add new custom drop-down to existing field

  1. #1
    kmiles2 is offline Member
    Join Date
    Apr 2010
    Location
    Baltimore, MD
    Posts
    13

    Default Add new custom drop-down to existing field

    I would like to create a custom list of states we operate in as a drop-down (done) but I'm not sure how I can tie that to the existing shipping state field. Studio doesn't allow existing non-custom fields to be edited.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Add new custom drop-down to existing field

    It is possible to do that, but it is a bit involved because address fields are treated differently than are other default fields.

    In a nutshell, you would have to create a new custom field type to override the default behavior of the default State field and then use a vardefs.ext.php file to apply the drop down to it.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    kmiles2 is offline Member
    Join Date
    Apr 2010
    Location
    Baltimore, MD
    Posts
    13

    Default Re: Add new custom drop-down to existing field

    Thanks Angel!

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

    Default Re: Add new custom drop-down to existing field

    If you want to tackle this, here is a thread where the country field was converted to a dropdown and a new address template for that dropdown created. You would follow the same basic steps for the state field.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to hide custom field for drop down selection
    By junie in forum Developer Help
    Replies: 4
    Last Post: 2009-03-25, 02:02 AM
  2. Is there a way to rename existing drop downs?
    By Foofighter in forum General Discussion
    Replies: 3
    Last Post: 2008-06-12, 08:14 AM
  3. Replies: 7
    Last Post: 2007-07-13, 01:38 PM
  4. Replies: 0
    Last Post: 2006-11-09, 03:04 PM
  5. Replies: 3
    Last Post: 2005-10-21, 05:28 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
  •