Results 1 to 7 of 7

Thread: Copy address from left adress checkbox

  1. #1
    rohitk is offline Sugar Community Member
    Join Date
    Mar 2010
    Location
    Poona
    Posts
    84

    Default Copy address from left adress checkbox

    Hi guys,

    May be this is a already asked question but can anyone tell me the details of how to make "Copy from left " checkbox from accounts module like functionality in custom modules.I have a custom module named "carrier" and i need to make same functionality as like accounts module and i cant find a way to figure it out.Even if i have to make changes in files (coding-wise) its fine. i have looked into other threads but they haven't provided with full details.

    Any help will be greatly appreciated.

    Rohit

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

    Default Re: Copy address from left adress checkbox

    Sugar uses JavaScript in a Smarty template to accomplish this in the Address SugarField.

    See the files under <sugar_root>/include/SugarFields/Fields/Address

    These files implement the grouping of multiple address fields into a custom layout. The code that implements the actual copy from left checkbox is in the file SugarFieldAddress.js

    Not exactly complete detials, but it should get you started.

    Phil

  3. #3
    rohitk is offline Sugar Community Member
    Join Date
    Mar 2010
    Location
    Poona
    Posts
    84

    Default Re: Copy address from left adress checkbox

    Hi datasponge,

    Thnx for your reply but this steps you mentioned i already did but it didn't get me to anywhere and i couldn't resolve my issue. Can you be more specific that will really help me out.

    Rohit.

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

    Default Re: Copy address from left adress checkbox

    Hi rohitk,

    What exactly are you trying to do?

    Did you do something that did not work or do you not know how to get started?

    If all you're trying to do is apply the same edit capabilities to two mailing address fields in a custom module, then you can simply tell the custom module edit layout to display the fields using the Smarty Address template. I'd have to look at the code to recall how, but it's very simple, so just let us know that's what you want and I'll look at my code to remember how to reference the smarty template.

    If you want to apply similar functionality to completely different fields, then you'll have to write your own javascript and possibly create your own SugarField.

    Phil

  5. #5
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Copy address from left adress checkbox

    Hi,

    When you create a custom module of type "Person", you will get that functionality by default.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  6. #6
    mangesh1757 is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    India
    Posts
    226

    Default Re: Copy address from left adress checkbox

    Hi rohitk,

    Just have a look at this link....might be useful to you......and seems to be a easy solution.


    http://www.sugarcrm.com/forums/showt...copy+from+left

    Do let know if you face any issues.

    Thanks

  7. #7
    rohitk is offline Sugar Community Member
    Join Date
    Mar 2010
    Location
    Poona
    Posts
    84

    Default Re: Copy address from left adress checkbox

    Hello all,


    Thnx guys for helping me out. Thnx to davidboris the way to solve this issue: Just take the module type as "PERSON" instead of "BASIC" and everything is taken care of.

    Cheers,
    Rohit.
    Last edited by rohitk; 2010-07-16 at 06:01 AM. Reason: typographical mistake

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. copy address checkbox not showing
    By rohitk in forum Help
    Replies: 1
    Last Post: 2010-06-23, 06:39 PM
  2. Copy address from left adress checkbox
    By alexkickstand in forum Developer Help
    Replies: 3
    Last Post: 2010-06-07, 04:39 PM
  3. Adding "Copy address from left" in custom module
    By skuliaxe in forum Developer Help
    Replies: 1
    Last Post: 2010-04-30, 05:57 PM
  4. Copy Address from left for Select element
    By datasponge in forum Developer Help
    Replies: 0
    Last Post: 2010-03-31, 11:16 PM
  5. Copy address from left button in lead module
    By vishwasrao in forum Developer Help
    Replies: 8
    Last Post: 2009-04-06, 10:28 AM

Tags for this Thread

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
  •