Results 1 to 3 of 3

Thread: Adding Email Address as a required field for Contacts

  1. #1
    ashcam is offline Senior Member
    Join Date
    Feb 2009
    Posts
    22

    Exclamation Adding Email Address as a required field for Contacts

    I am trying to add email address as a required field for contacts. I have been able to add other fields such as First Name and Phone Number. However, email address is not working. If I do not enter an email address then it still saves without error.

    Here is what I added to the custom editviewdefs.php for Contacts:
    'lbl_email_addresses' =>
    array (
    0 =>
    array (
    0 =>
    array (
    'name' => 'email1',
    'label' => 'LBL_EMAIL_ADDRESS',
    'displayParams' =>
    array (
    'required' => true,
    ),
    ),
    ),
    ),


    It shows up as a required field but still saves if blank. Can anyone help with how to make email address a required field? What file does sugar use to validate the email address for edit view on Contacts?
    I am using SugarCRM CE 5.2.0c.

    Thanks for your help!

  2. #2
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: Adding Email Address as a required field for Contacts

    Hi
    i have add the same line in my system. it working fine
    can you clear the cache file through the repair and check

  3. #3
    ashcam is offline Senior Member
    Join Date
    Feb 2009
    Posts
    22

    Default Re: Adding Email Address as a required field for Contacts

    I have done quick repair and rebuild in sugar. It still allows me to save a blank email address. Can you show me an example of your code and let me know which file you set the required field in for email address? Also what version of sugar are you using?

    Thanks for your help! Just trying to figure why this isn't working!

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. 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
  3. Make email-address required on Lead and Contact
    By redpillsweden in forum Developer Help
    Replies: 2
    Last Post: 2008-11-19, 09:32 PM
  4. Replies: 0
    Last Post: 2007-01-04, 09:44 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
  •