Results 1 to 9 of 9

Thread: Remove Last name as compulsory field in Leads

  1. #1
    biplob is offline Senior Member
    Join Date
    Feb 2009
    Posts
    61

    Default Remove Last name as compulsory field in Leads

    Hi,
    I want to create leads without last name as compulsory field. Presently Last name is compulsory field in my leads.Please assist me,from where I have to make changes.
    Thanks in advance..

  2. #2
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Thumbs up Re: Remove Last name as compulsory field in Leads

    hi...

    see this link..
    http://www.sugarcrm.com/forums/showthread.php?t=46267


    all the best
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  3. #3
    genius786's Avatar
    genius786 is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Karachi, Pakistan
    Posts
    131

    Smile Re: Remove Last name as compulsory field in Leads

    Hi,

    You have to write the extension version of Vardefs in Leads and write the following code :

    $dictionary['Account']['fields']['last_name']['required'] = false;




    Best regards,
    SARFARAZ AHMED KHAN
    Karachi, Pakistan
    skype: genius_crystal
    genius_crystal@hotmail.com
    92-314-2595624

  4. #4
    biplob is offline Senior Member
    Join Date
    Feb 2009
    Posts
    61

    Default Re: Remove Last name as compulsory field in Leads

    Hi,
    Its not working with the code yet.Please guide me to got the solution.
    Thanks in advance...

  5. #5
    biplob is offline Senior Member
    Join Date
    Feb 2009
    Posts
    61

    Default Re: Remove Last name as compulsory field in Leads

    Hi,
    I am in so much of problem.No one is there to help me out.I am going through it from last 4 days but still not get appropriate solution for it.Please help me .
    Thanks in advance..

  6. #6
    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 Last name as compulsory field in Leads

    Did you go to Admin -> Repair -> Quick Repair and Rebuild?

    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.

  7. #7
    Rjrobinson is offline Member
    Join Date
    Apr 2009
    Posts
    9

    Default Re: Remove Last name as compulsory field in Leads

    Here is how I did it. First you make a copy of the "VarDefs" file under Modules/Leads/.

    Add the line:

    $dictionary['Leads']['fields']['last_name']['required'] = 'false';

    Now, save this new file under "custom/Extension/modules/Leads/Ext/VarDefs/filename"

    filename can be whatever you want.

    Next, find the file "modules/Leads/metadata/editviewdefs.php"

    about line 81 you will find this entry:

    array (
    array('name'=>'last_name',
    'displayParams'=>array('required'=>true),
    ),
    'phone_mobile',
    ),

    change "true" to "false"

    rebuild the Leads module and you should be OK.

    RJ

  8. #8
    oreny is offline Member
    Join Date
    Apr 2009
    Posts
    7

    Default Re: Remove Last name as compulsory field in Leads

    Hi,

    Thanks for the info.

    Can this also be done with other modules?

    Thanks.

  9. #9
    Rjrobinson is offline Member
    Join Date
    Apr 2009
    Posts
    9

    Default Re: Remove Last name as compulsory field in Leads

    I've done it with accounts, leads and contacts. So far no problems

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove http prefix from website field
    By imrankha in forum Developer Help
    Replies: 2
    Last Post: 2009-01-19, 11:56 AM
  2. remove comma from integer field in detailview
    By mikesolomon in forum Developer Help
    Replies: 7
    Last Post: 2008-07-22, 10:39 AM
  3. Replies: 1
    Last Post: 2007-10-06, 07:20 AM
  4. Replies: 4
    Last Post: 2006-07-07, 03:59 PM
  5. Remove field from mass update
    By markybob in forum Help
    Replies: 5
    Last Post: 2006-05-07, 04:36 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
  •