I'd like to prevent a single contact from having two addresses with the type 'Home' (or 'Work', etc.). Is there a CiviCRM configuration, or an extension, that provides this functionality?
-
I don't think it's possible in the UI to create two home addresses. Form validation prevents it. Where are they coming from?– ColemanCommented May 27, 2016 at 21:02
-
Imports perhaps?– KarinG - Semper ITCommented May 27, 2016 at 22:19
-
Thanks, @Coleman. Should have guessed the UI would prevent this. Looks like they're created as part of a webform-civicrm form submission -- which I guess means they're created via API. Need to dig further I suppose.– TwoMiceCommented May 31, 2016 at 19:21
Add a comment
|
1 Answer
The form validation in the user interface will prevent this. So there's no need to have a setting that would prevent it.
But the API does not prevent it: you can, for example, create a second Home address for a contact through the API. There is no API configuration or option to prevent this.
Thanks @Coleman for pointing this out.