Results 1 to 9 of 9

Thread: Need to Remove Required Field in Contacts

  1. #1
    nirensewsanker is offline Senior Member
    Join Date
    May 2009
    Posts
    43

    Question Need to Remove Required Field in Contacts

    Hi Guys

    I am trying to remove a required field within my contact as it is hampering my ability to import contacts. i have removed it from all layouts yet it is still required when importing. How can I remove this field? or is there any other way to make not required?

    Thank you

    (5.2.0i)

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Need to Remove Required Field in Contacts

    Quote Originally Posted by nirensewsanker View Post
    Hi Guys

    I am trying to remove a required field within my contact as it is hampering my ability to import contacts. i have removed it from all layouts yet it is still required when importing. How can I remove this field? or is there any other way to make not required?

    Thank you

    (5.2.0i)
    create a file custom/Extenstion/modules/Contacts/Ext/Vardefs/custom.php

    containing

    $dictionary["Contact"]["fields"]['FIELDNAME']['required'] = false;

    Where FIELDNAME is the name of the field you want not to be required

    Then run a repair
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    nirensewsanker is offline Senior Member
    Join Date
    May 2009
    Posts
    43

    Question Re: Need to Remove Required Field in Contacts

    Hi I tried that but it just corrupted my system after I repaired it. Is there any other solution to this problem?

    Thank you

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Need to Remove Required Field in Contacts

    Quote Originally Posted by nirensewsanker View Post
    Hi I tried that but it just corrupted my system after I repaired it. Is there any other solution to this problem?

    Thank you
    When you say it corrupted it can u tell be what happened?

    Can you post the code u used ?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  5. #5
    carlo75 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    86

    Default Re: Need to Remove Required Field in Contacts

    Hi mikesolomon,
    I've the same need, but in Documents field filename... acn you help me with the code?

    Thanks in advance.
    Regards

  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: Need to Remove Required Field in Contacts

    Double check custom/modules/Contacts/metadata/editviewdefs.php
    Make sure there is no displayParams['required'] => true for this field.

    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
    carlo75 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    86

    Default Re: Need to Remove Required Field in Contacts

    Hi andopes thank for your reply,
    I'll try immediately... at the moment I've operated at database level... really poor solution

  8. #8
    avintel is offline Junior Member
    Join Date
    Sep 2010
    Posts
    4

    Default Re: Need to Remove Required Field in Contacts

    Most of the preceding suggestions are a bit confusing to me because:
    1. I am brand new (today) to SugarCRM
    2. I am not great with PHP (some experience with other PHP based platforms like: Magento)

    My issue:
    Upon successful installation, I exported my CONTACTS DB from Microsoft Outlook 2007 and used the CONTACTS import tool within SugarCRM to attempt an import.
    I received an error message indicating that contacts without last names were not imported due to required value.

    Additional Assessment:
    Should the SugarCRM field: ACCOUNT NAME reference the COMPANY NAME field that I use in Outlook?
    If so, is it "best practices" to store this data under ACCOUNTS and then "assign" CONTACTS to their respective ACCOUNTS?
    Do I need to import Company Name/info (outlook) into ACCOUNTS (Sugar) first (to create the ACCOUNTS) and then RE-import CONTACTS (outlook) into CONTACTS (Sugar) again? When I originally imported my Outlook contacts into the CONTACTS import feature (Sugar), it did not include the company name, obviously because importing into contacts does not create the ACCOUNT (actually, this is a question))???

    Is there an easy way to remove the requirement of LAST NAME in CONTACTS or, better yet, make LAST NAME -or- FIRST NAME required???

    Bonus Question:
    Can I "link" different CONTACTS to each other from different COMPANIES/ACCOUNTS?
    Last edited by avintel; 2010-09-08 at 06:58 PM. Reason: Grammatical Clarity

  9. #9
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Need to Remove Required Field in Contacts

    as for andopes said to you, if you can't find sugarfolder/custom/modules/Contacts/metadata/editview.php file then make all of this directories and then copy editview.php from sugarfolder/modules/Contacts/metadata into the path above. Then make all changes to file in custom directory and do quick repair after changes.

    As for accounts, i would suggest you make them as they make contact with you, you never know will they be your buyer snow or later.

    Linking is contacts between contacts is possible throe relationships but that is whole another story.
    CRM Software Engineer
    Eontek - www.eontek.rs

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 2010-12-03, 11:17 AM
  2. Replies: 2
    Last Post: 2009-05-28, 04:29 PM
  3. Make email as required field in Enter Business card-Contacts
    By dinudanial in forum Developer Help
    Replies: 22
    Last Post: 2009-04-08, 01:17 PM
  4. Remove "required" status from a field
    By trivoc in forum Help
    Replies: 0
    Last Post: 2008-07-01, 01:24 PM
  5. Replies: 7
    Last Post: 2007-07-13, 01:38 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
  •