Answers.Body: <p>It sounds like you might want to try out the <a href="https://civicrm.org/extensions/no-overwrite" rel="nofollow noreferrer">No Overwrite extension</a>, which makes the contact's name read-only on forms. We've been using it for quite a while - it really helps cut down on this kind of problem.</p>
  <p>We also use <a href="https://civicrm.org/extensions/former-communication-data" rel="nofollow noreferrer">Former Communications Data</a> to at least keep records of past emails if they are overwritten (though this extension is not infallible).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-24T03:41:14.007Z
Answers.LastActivityDate: 2022-10-24T03:41:14.007Z
Answers.UserDisplayName: Lars SG
Body: <p>I've been working with CiviCRM in Drupal for about 12 years and this issue never seems to go away entirely.</p>
  <p>Someone, typically the president of an organization (just to make things more interesting) will register themselves and their spouse/partner for an event and one way or another they will overwrite their own record with their spouses name and add the email address of their spouse to their record.</p>
  <p>Our registration profile is First Name, Last Name, Email Address and it is used for registering the first person and their guests.</p>
  <p><strong>NOTE:</strong> <em>We are allowing non-logged in people to register for events (not my decision).</em></p>
  <p><strong>My unsupervised rule for Individuals is:</strong></p>
  <ul>
  <li>Email: 15</li>
  <li>First name: 5</li>
  <li>Last name: 10</li>
  <li>Weight Threshold: 30</li>
  </ul>
  <p>On my profile for event registration I have first name, last name and the email is set to &quot;other&quot; so as to prevent them overwriting the primary email address. I would have thought this would prevent overwriting but just this morning the president of an organization I support, managed to overwrite his contact record with his wife's name which of course shows up on any listing he's supposed to be on.</p>
  <p>In order to try to combat this, I have unchecked the <em>&quot;Same email address&quot;</em> field for multiple registrations and I've added a new profile for guests which has First Name, Last Name as mandatory fields but the email field is not mandatory.</p>
  <p>Other than making it mandatory for members to be logged in to register, I'm not sure what else we can do to prevent this from occurring.</p>
  <p>Anyone else have ideas or solutions?</p>
  <p>Cheers,
  Andrew</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-21T23:59:47.487Z
Comments.Text: Is this happening to contacts who are registering from personalized links (i.e. with contact id and checksum in the URL) are is it just people registering through a non-personalized link?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-22T00:33:12.863Z
Comments.Text: Non personalized. It's self serve with no requirement to identify themselves.
Comments.UserDisplayName: Andrew Wasson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-22T01:17:36.107Z
Comments.Text: OK, so are you ending up with two registrations for the same event on the same contact? Or do you have two contacts, with one registration each, and somehow the name and email for one of them has been switched? And is it the primary registrant who has their details switched?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-22T01:18:57.490Z
Comments.Text: And are you confident that the president wasn't logged in when he registered?
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-24T01:40:56.790Z
Comments.Text: Thanks Lars, I'm ending up with two registrations and both of them get the same first name (their last name is the same). Both of them get the same email address which I have mapped to "other" in my registration fields profile. I am not sure if the president was logged in when he did this. If he was, then his name, email address and employer would have been pre-filled and he shouldn't have needed to do anything however if he went in logged-in, cleared the fields and registered his wife, I could see how that would get messy.
Comments.UserDisplayName: Andrew Wasson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-24T03:49:09.260Z
Comments.Text: Sounds like maybe some kind of auto-fill situation on the president's end while logged in, perhaps, with their partner's name being filled in replacing their own when logged in. I can't see how this could happen other than while logged in given your dedupe rule. And then because you have the same email setting disabled, they came back to register a second time in a separate registration for the second one, but managed to put in the same name, perhaps? Not clear if you have one contact or two, but I'd think they'd be deduped into one.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-24T03:49:43.127Z
Comments.Text: I always leave same email enabled, because lots of people share an email address and just introduced more room for error if you force them to go through the process twice.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-10-28T05:00:20.137Z
Comments.Text: The more I consider it, the more I think he came in and was logged in. He probably registered himself and then came in again cleared the form fields and filled it in with his wife's details. I think your answer is as close as we're going to get so I will mark it as correct. Thanks for the assistance.
Comments.UserDisplayName: Andrew Wasson
Tags: <civievent><duplicate-contacts><online-registration><drupal-7>
Title: How can we prevent contact record overwrites once and for all?
ThreadText: # How can we prevent contact record overwrites once and for all?
  
  (Asked by: username_0 on 2022-10-21)
  
  I've been working with CiviCRM in Drupal for about 12 years and this issue never seems to go away entirely.
  
  Someone, typically the president of an organization (just to make things more interesting) will register themselves and their spouse/partner for an event and one way or another they will overwrite their own record with their spouses name and add the email address of their spouse to their record.
  
  Our registration profile is First Name, Last Name, Email Address and it is used for registering the first person and their guests.
  
  **NOTE:** *We are allowing non-logged in people to register for events (not my decision).*
  
  **My unsupervised rule for Individuals is:**
  
  * Email: 15
  * First name: 5
  * Last name: 10
  * Weight Threshold: 30
  
  On my profile for event registration I have first name, last name and the email is set to "other" so as to prevent them overwriting the primary email address. I would have thought this would prevent overwriting but just this morning the president of an organization I support, managed to overwrite his contact record with his wife's name which of course shows up on any listing he's supposed to be on.
  
  In order to try to combat this, I have unchecked the *"Same email address"* field for multiple registrations and I've added a new profile for guests which has First Name, Last Name as mandatory fields but the email field is not mandatory.
  
  Other than making it mandatory for members to be logged in to register, I'm not sure what else we can do to prevent this from occurring.
  
  Anyone else have ideas or solutions?
  
  Cheers,
  username_0
  
  **Tags:** civievent, duplicate-contacts, online-registration, drupal-7
  
  > **Comments:**
  > **username_1**: Is this happening to contacts who are registering from personalized links (i.e. with contact id and checksum in the URL) are is it just people registering through a non-personalized link?  
  > **username_0**: Non personalized. It's self serve with no requirement to identify themselves.  
  > **username_1**: OK, so are you ending up with two registrations for the same event on the same contact? Or do you have two contacts, with one registration each, and somehow the name and email for one of them has been switched? And is it the primary registrant who has their details switched?  
  > **username_1**: And are you confident that the president wasn't logged in when he registered?  
  > **username_0**: Thanks username_1, I'm ending up with two registrations and both of them get the same first name (their last name is the same). Both of them get the same email address which I have mapped to "other" in my registration fields profile. I am not sure if the president was logged in when he did this. If he was, then his name, email address and employer would have been pre-filled and he shouldn't have needed to do anything however if he went in logged-in, cleared the fields and registered his wife, I could see how that would get messy.  
  > **username_1**: Sounds like maybe some kind of auto-fill situation on the president's end while logged in, perhaps, with their partner's name being filled in replacing their own when logged in. I can't see how this could happen other than while logged in given your dedupe rule. And then because you have the same email setting disabled, they came back to register a second time in a separate registration for the second one, but managed to put in the same name, perhaps? Not clear if you have one contact or two, but I'd think they'd be deduped into one.  
  > **username_1**: I always leave same email enabled, because lots of people share an email address and just introduced more room for error if you force them to go through the process twice.  
  > **username_0**: The more I consider it, the more I think he came in and was logged in. He probably registered himself and then came in again cleared the form fields and filled it in with his wife's details. I think your answer is as close as we're going to get so I will mark it as correct. Thanks for the assistance.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-10-24. Score: 2 | Accepted answer
  
  It sounds like you might want to try out the [No Overwrite extension](https://civicrm.org/extensions/no-overwrite), which makes the contact's name read-only on forms. We've been using it for quite a while - it really helps cut down on this kind of problem.
  
  We also use [Former Communications Data](https://civicrm.org/extensions/former-communication-data) to at least keep records of past emails if they are overwritten (though this extension is not infallible).
  
  
  ---
  
  