Results 1 to 4 of 4

Thread: Auto-populate custom field from Accounts to Contacts

  1. #1
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Auto-populate custom field from Accounts to Contacts

    Hi, I have a custom field in Accounts that I want to auto-populate into a contact, either upon creation from within an account (i.e., such that account relationship is created automatically), or after selection (i.e., contact created from within contacts module and account associated manually).. I've followed a couple of similar posts without success. This field is a drop-down menu, so somehow would need to select same drop-down menu item as associated account.

    Thanks!

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Auto-populate custom field from Accounts to Contacts

    There is no native functionality to do this ... you'd need to write some custom code.

  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 custom field from Accounts to Contacts

    Quote Originally Posted by danheff View Post
    Hi, I have a custom field in Accounts that I want to auto-populate into a contact, either upon creation from within an account (i.e., such that account relationship is created automatically), or after selection (i.e., contact created from within contacts module and account associated manually).. I've followed a couple of similar posts without success. This field is a drop-down menu, so somehow would need to select same drop-down menu item as associated account.

    Thanks!
    There is an easy to implement feature for Contacts EditView, where you are going to select the Account, but for any other procedure you would need to create a logic_hook before_save on Contacts.
    If you want to select a new Contact from subpanel under Accounts you would need to extends the Save2 action, once save function is not triggered at this point.

    Regards
    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
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: Auto-populate custom field from Accounts to Contacts

    Thanks for the suggestions. I actually have a few of these fields here and there...could you provide an example code and location to put it that I can apply to multiple fields? Is it a complicated set-up? Much appreciated.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 18
    Last Post: 2012-05-09, 01:32 PM
  2. auto-populate email address from contacts
    By monicaDC in forum Developer Help
    Replies: 7
    Last Post: 2011-10-19, 02:25 PM
  3. Replies: 3
    Last Post: 2010-01-24, 10:05 AM
  4. auto Populate using a relate to field
    By Glitch in forum Developer Help
    Replies: 0
    Last Post: 2009-07-20, 06:30 AM
  5. Auto Populate relate Field..
    By Mubi in forum Developer Help
    Replies: 4
    Last Post: 2008-07-21, 01:35 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
  •