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?
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?
You need to:
Edit custom/modules/Contacts/metadata/editviewdefs.php
Define the attribute
This function should accomplish the same logic in set_return, initially defined in jssource/src_files/include/javascript/sugar_3.js;PHP Code:'displayParams' => array(
'call_back_function' => 'some javascript function',
),
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.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks