Results 1 to 2 of 2

Thread: Help: How to restore last_name in Contact as Required filed

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

    Default Help: How to restore last_name in Contact as Required filed

    I am now using 5.2e and I once tried to try to hide the field "last_name" from the edit view of Contact from the Studio. But later on when I put it back it becomes a non-required field! This makes crazy!

    What I did is:

    in Studio's Contact module: drag the "Last Name" from edit view and hide it.

    later on when I drag it back, it becomes a Non-required field!

    Also I tried to make "first_name" a required field but failed. How can I do that? I tried to modify fieldarray.php and editview.php but that did NOT help.

    Last question: when I click an opportunity and want to "Select" a contact for it, but the contact does not exist in the list in the popup window. Then I click "Create a new contact" in the popup window it will allow me to input First Name, Last Name,... But if I want to change the required field from Last Name to First Name, how can I do it?

    Many thanks in advance!!!!!

  2. #2
    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: Help: How to restore last_name in Contact as Required filed

    Add the attribute

    PHP Code:
    'displayParams' => array(
      
    'required' => true,
    ), 
    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. set_entry and first_name, last_name fields
    By anztenney in forum Help
    Replies: 0
    Last Post: 2008-05-31, 12:54 AM
  2. Leads - last_name verlängern
    By sensusmedia in forum Deutsche
    Replies: 7
    Last Post: 2008-04-27, 01:49 PM
  3. Making required filed not required?
    By miavfw in forum General Discussion
    Replies: 8
    Last Post: 2008-04-11, 09:17 PM
  4. Replies: 2
    Last Post: 2007-05-02, 12:28 AM
  5. Replies: 3
    Last Post: 2007-02-28, 02:45 PM

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
  •