Results 1 to 3 of 3

Thread: Setting unique value in contact

  1. #1
    Pocketphone is offline Junior Member
    Join Date
    Apr 2010
    Posts
    4

    Post Setting unique value in contact

    Hey guys, as a complete newbie to Sugar, I'm hoping my problem is an easy fix.

    When entering a new customer details Sugar checks for duplicate value for names, however, I would like it to check for duplicate value in Mobile number & not allow duplicate value as every one is unique. However I still would like it to allow a NULL value?

    If you need more info to help me please let me know.

    Thnx in advance everyone

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Setting unique value in contact

    You would have to edit the
    PHP Code:
    function checkForDuplicates($prefix){ 
    function in modules/Contacts/ContactFormBase.php around line #39. You would have to add your field to the SQL and set up some code around that to check for duplicates.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    Pocketphone is offline Junior Member
    Join Date
    Apr 2010
    Posts
    4

    Default Re: Setting unique value in contact

    Quote Originally Posted by kbrill View Post
    You would have to edit the
    PHP Code:
    function checkForDuplicates($prefix){ 
    function in modules/Contacts/ContactFormBase.php around line #39. You would have to add your field to the SQL and set up some code around that to check for duplicates.
    Thanks kbrill

    So far I can visualise everything I want to achieve out of SugarCRM, but it appears I'm going to have to learn how to program PHP to achieve it seems as I'm going to be using SugarCRM for the next 30+ years, that's the new direction I'm going to take

    Moderators, if your reading this post, may I suggest a forum just for newbies where we can ask even the dumbest of questions, just a thought

    Cheers
    Jon

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. user 'report to' setting and sharing contact/accounts
    By jcanapa in forum General Discussion
    Replies: 4
    Last Post: 2010-02-26, 10:07 AM
  2. How unique is the unique ID?
    By RedSerratia in forum Developer Help
    Replies: 2
    Last Post: 2008-09-23, 01:04 PM
  3. SOAP - setting email for contact via soap
    By darcy.rippon in forum Developer Help
    Replies: 3
    Last Post: 2008-09-22, 08:13 PM
  4. Replies: 1
    Last Post: 2008-03-28, 10:37 PM
  5. Replies: 4
    Last Post: 2007-11-29, 03:24 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
  •