Results 1 to 3 of 3

Thread: Copy address Account To Contact: empty field

  1. #1
    cise is offline Junior Member
    Join Date
    Aug 2011
    Posts
    2

    Default Copy address Account To Contact: empty field

    Hi,
    the default copy addresses algorithm (Account to Contact) leave the original Contact fields value for each empty field in Accounts address. I would like, instead, to copy the empty field and prevent inconsistent addresses.

    How can I do this?

  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: Copy address Account To Contact: empty field

    You need to:
    Edit custom/modules/Contacts/metadata/editviewdefs.php
    Define the attribute
    PHP Code:
    'displayParams' => array(
      
    'call_back_function' => 'some javascript function',
    ), 
    This function should accomplish the same logic in set_return, initially defined in jssource/src_files/include/javascript/sugar_3.js;
    You need to customize your custom function in order to double check empty field from Accounts x populated field in Contacts before updating it.

    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.

  3. #3
    tanya78 is offline Sugar Community Member
    Join Date
    Feb 2011
    Posts
    13

    Default Re: Copy address Account To Contact: empty field

    Hi Andopes,

    Thanks for the tip as was looking for solution for the same problem regarding copy address. As new to sugar was not sure to which field I have to add the attribute 'displayParams' => array(
    'call_back_function' => 'some javascript function',
    ),

    Any help would be much appreciated.

    Thanks
    Tanya

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2011-08-10, 03:36 PM
  2. Replies: 3
    Last Post: 2011-02-09, 08:48 AM
  3. Copy address from account to contacts
    By knoop in forum Developer Help
    Replies: 5
    Last Post: 2011-01-05, 11:01 AM
  4. How to copy address from account?
    By jim.thornton in forum Developer Help
    Replies: 3
    Last Post: 2009-06-26, 12:43 PM
  5. Mapping of Address-Field between Account and Contact
    By mmoench in forum Developer Help
    Replies: 3
    Last Post: 2009-03-12, 11:27 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
  •