CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Making email addresses unique
Pages: [1]

Author Topic: Making email addresses unique  (Read 550 times)

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Making email addresses unique
January 12, 2012, 08:09:58 am
Hi

Is it possible to set up civi so that if entering an email address which is already on the system this is flagged as a duplicate...? Our policy is one email address per member which then helps us create a joomla account.

Cheers

Robbie



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Making email addresses unique
January 12, 2012, 08:43:02 am

You can use a validate hook to ensure this across all forms that your org uses. You can also add this to the post hook of the email object (and abort if so?)

Check:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification
http://book.civicrm.org/developer/

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Making email addresses unique

This forum was archived on 2017-11-26.