Results 1 to 4 of 4

Thread: Remove the title from the name field

  1. #1
    Albin is offline Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Default Remove the title from the name field

    When I enter a new contact, the first field shown is "First Name". I would like to remove the title field that immediately precedes the name. Is there a way to accomplish this (without creating custom fields for "name"). Thanks.

  2. #2
    RandyLee's Avatar
    RandyLee is offline Sugar Team Member
    Join Date
    Oct 2008
    Posts
    605

    Default Re: Remove the title from the name field

    Go to your SugarInstance\moduels\contacts\metedata\editviewva rds.php file and remove the costom code line in first_name definition.

    PHP Code:
     array (
          array (
            
    'name' => 'first_name',
            
    //'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
          
    ),
          
    'phone_work',
        ), 

    Better Sugar, Better Life!

  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: Remove the title from the name field

    Quote Originally Posted by RandyLee View Post
    Go to your SugarInstance\moduels\contacts\metedata\editviewva rds.php file and remove the costom code line in first_name definition.

    PHP Code:
     array (
          array (
            
    'name' => 'first_name',
            
    //'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
          
    ),
          
    'phone_work',
        ), 
    Remember to apply this change into custom editviewdefs.php: SugarInstance/custom/moduels/Contacts/metedata/editviewdefs.php for an upgrade safe customization.

    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.

  4. #4
    jgyc430 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    19

    Default Re: Remove the title from the name field

    Quote Originally Posted by andopes View Post
    Remember to apply this change into custom editviewdefs.php: SugarInstance/custom/moduels/Contacts/metedata/editviewdefs.php for an upgrade safe customization.

    Cheers
    Hi,

    I tried comment out the line in SugarInstance/custom/moduels/Contacts/metedata/editviewdefs.php but it still showing the title in the Full Name. Can someone please help me out.

    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change title from localhost to some other title
    By sidh211 in forum Developer Help
    Replies: 3
    Last Post: 2009-09-16, 04:02 PM
  2. Replies: 8
    Last Post: 2009-04-13, 04:29 AM
  3. Replies: 0
    Last Post: 2009-02-15, 06:26 AM
  4. Remove field from mass update
    By markybob in forum Help
    Replies: 5
    Last Post: 2006-05-07, 04:36 AM
  5. Modification to dB field - 'title'
    By tony.lee in forum Developer Help
    Replies: 0
    Last Post: 2005-08-26, 09:59 PM

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
  •