Results 1 to 4 of 4

Thread: Edit "Lead" module - Billing Address DIV block

  1. #1
    Marto is offline Junior Member
    Join Date
    Feb 2012
    Posts
    1

    Default Edit "Lead" module - Billing Address DIV block

    Hi guys,

    Can somebody help me to edit the "Lead" module, the "Billing Address" DIV block that shows the info: street, city, state, postal code and country. Actually I would like to edit the Country type of input tag from text to dropdown menu with all countries list. I'm finding troubles to do it.

    Any help will be appreciated.

    Thanks,
    Martin

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Edit "Lead" module - Billing Address DIV block

    Quote Originally Posted by Marto View Post
    Hi guys,

    Can somebody help me to edit the "Lead" module, the "Billing Address" DIV block that shows the info: street, city, state, postal code and country. Actually I would like to edit the Country type of input tag from text to dropdown menu with all countries list. I'm finding troubles to do it.

    Any help will be appreciated.

    Thanks,
    Martin
    You'll want to edit the Address SugarField EditView.tpl template for this. Just copy the existing one into the custom/include/SugarFields/Fields/Address/EditView.tpl and start editing.
    John Mertic
    Sugar Community Manager

  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Edit "Lead" module - Billing Address DIV block

    Other simple way to convert contry field is on extensions of your module chnagew the field type and assign dropdown options:
    Example:
    File: custom/Extensions/modules/Leads/Ext/vardefs/contry.php
    Content:
    <?php
    $dictionary["Leads"]["fields"]["country"]["type"]="enum";
    $dictionary["Leads"]["fields"]["country"]["options"]="contries_list";
    ?>

    Whether this solution don't works you also can change field type with javascript code on run time.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  4. #4
    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: Edit "Lead" module - Billing Address DIV block

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    Other simple way to convert contry field is on extensions of your module chnagew the field type and assign dropdown options:
    Example:
    File: custom/Extensions/modules/Leads/Ext/vardefs/contry.php
    Content:
    <?php
    $dictionary["Leads"]["fields"]["country"]["type"]="enum";
    $dictionary["Leads"]["fields"]["country"]["options"]="contries_list";
    ?>

    Whether this solution don't works you also can change field type with javascript code on run time.
    Remember dictionary variable contains the Bean Name (singular) rather than module name (plural).

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to create an Address Block
    By citapinc in forum Help
    Replies: 7
    Last Post: 2011-11-07, 06:14 PM
  2. Address Block in Opportunities
    By pow3rsurg3 in forum Developer Help
    Replies: 3
    Last Post: 2009-11-11, 08:55 AM
  3. Replies: 2
    Last Post: 2009-09-10, 09:07 AM
  4. Address Block Modifications
    By jaolick in forum Help
    Replies: 0
    Last Post: 2009-05-07, 06:27 PM
  5. Address Block Modification
    By jreutter in forum Help
    Replies: 1
    Last Post: 2008-01-28, 12:54 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
  •