Answers.Body: <p>The form validation in the user interface will prevent this. So there's no need to have a setting that would prevent it.</p>
  
  <p>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.</p>
  
  <p>Thanks @Coleman for pointing this out.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-03T22:41:07.500Z
Answers.LastActivityDate: 2016-06-03T22:41:07.500Z
Answers.UserDisplayName: TwoMice
Body: <p>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?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-27T21:02:12.107Z
Comments.Text: I don't think it's possible in the UI to create two home addresses. Form validation prevents it. Where are they coming from?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-27T22:19:24.123Z
Comments.Text: Imports perhaps?
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-31T19:21:34.797Z
Comments.Text: 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.
Comments.UserDisplayName: TwoMice
Tags: <addresses>
Title: Is there a way to prevent two 'home' addresses for a contact?
ThreadText: # Is there a way to prevent two 'home' addresses for a contact?
  
  (Asked by: username_0 on 2016-05-27)
  
  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?
  
  **Tags:** addresses
  
  > **Comments:**
  > **username_1**: I don't think it's possible in the UI to create two home addresses. Form validation prevents it. Where are they coming from?  
  > **username_2**: Imports perhaps?  
  > **username_0**: Thanks, @username_1. 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.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-06-03. Score: 1
  
  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 @username_1 for pointing this out.
  
  
  ---
  
  