Results 1 to 4 of 4

Thread: Auto populate address fields in 4.5

  1. #1
    joshmark is offline Member
    Join Date
    Dec 2006
    Posts
    9

    Default Auto populate address fields in 4.5


    I would like to make the city, state and country fields of the address (in Contact module) to auto populate if they match the data existing in the database (e.g. if the same city name exist in the database) any pointer how this can be achieved?

    I derive this idea from the account name field in Contact Edit View. As soon as we start typing the account name, it populates the account name starting with those characters. This means the functionality exists, how can I add it to address fields?

    On an all-together different track, is possible to enhance the address field to auto fill city, state information from ZIP code. Obviously this will require adding zip code table somewhere in the database, but is it possible?

    Thanks for the help.

  2. #2
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: Auto populate address fields in 4.5

    hi joshmark,

    yes ofcourse u can make this functionality work for u.

    if u have the table having all information regarding all cities and what ever u need.

    u have to add new function in include/QuickSearchDefaults.php with appropriate data.

    and have to create sqsobject in module's editview.php

    i hope this information helps.
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  3. #3
    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: Auto populate address fields in 4.5

    Quote Originally Posted by heta
    hi joshmark,

    yes ofcourse u can make this functionality work for u.

    if u have the table having all information regarding all cities and what ever u need.

    u have to add new function in include/QuickSearchDefaults.php with appropriate data.

    and have to create sqsobject in module's editview.php

    i hope this information helps.
    Hi, all.
    The script include/QuickSearchDefaults.php stores only metadatas, nothing more.
    Then you can add this metadata any place you want, like another script into include dir.

    But the heta suggestion really can works.
    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.

  4. #4
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Auto populate address fields in 4.5

    All cool ideas, but I haven't seen anything like this built yet for Sugar by anybody in the community.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. exporting enum custom fields
    By dricrm in forum Developer Help
    Replies: 0
    Last Post: 2007-07-18, 04:41 PM
  2. Replies: 1
    Last Post: 2006-11-24, 12:08 AM
  3. Auto Calculate & Populate Fields
    By coowboy in forum Developer Help
    Replies: 2
    Last Post: 2006-06-26, 11:58 AM
  4. Populate contact's address from account
    By hheckel in forum Help
    Replies: 2
    Last Post: 2005-02-23, 08:26 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
  •