Answers.Body: <p>I guess the custom field is configured to use for Participants entity with Event name/event type/role set to any.</p>
  
  <p>Solution for fix:</p>
  
  <ol>
  <li><p>Upgrade CiviCRM to 5.15 or 5.16 because i can't replicate the bug anymore on latest version of CiviCRM.</p></li>
  <li><p>Change the custom field config to use only Participants as entity instead Participants(Event Name), Participants(Event Type) or Participants(Roles).</p></li>
  </ol>
  
  <p><a href="https://i.sstatic.net/sOZPu.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sOZPu.png" alt="enter image description here"></a></p>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-14T09:36:10.397Z
Answers.LastActivityDate: 2019-08-14T09:36:10.397Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I encountered a strange situation.  I have added a custom data group in a participation record called "Emergency Contact"  with 2 fields and while this appeared ok in View of the participant records, there would be 2 such group displayed when i click Edit.  Entering only 1 of these 2 group will retain the values, the other group wouldn't.  Any idea how this happened and how it can be resolved?</p>
  
  <p>WordPress: 5.0.4 CIVICRM: 5.10.4 Ubuntu</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-14T08:54:22.273Z
Comments.Text: Could you add some screenshots?  Also, a lot has happened since 5.10.4 - I'd upgrade before investigating much further.
Comments.UserDisplayName: Aidan
Tags: <civievent><custom-fields>
Title: Civievent custom data field duplicate fields in Edit
ThreadText: # Civievent custom data field duplicate fields in Edit
  
  (Asked by: username_0 on 2019-08-14)
  
  I encountered a strange situation. I have added a custom data group in a participation record called "Emergency Contact" with 2 fields and while this appeared ok in View of the participant records, there would be 2 such group displayed when i click Edit. Entering only 1 of these 2 group will retain the values, the other group wouldn't. Any idea how this happened and how it can be resolved?
  
  WordPress: 5.0.4 CIVICRM: 5.10.4 Ubuntu
  
  **Tags:** civievent, custom-fields
  
  > **Comments:**
  > **username_1**: Could you add some screenshots?  Also, a lot has happened since 5.10.4 - I'd upgrade before investigating much further.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-08-14. Score: 1
  
  I guess the custom field is configured to use for Participants entity with Event name/event type/role set to any.
  
  Solution for fix:
  
  1. Upgrade CiviCRM to 5.15 or 5.16 because i can't replicate the bug anymore on latest version of CiviCRM.
  2. Change the custom field config to use only Participants as entity instead Participants(Event Name), Participants(Event Type) or Participants(Roles).
  
  [![enter image description here](https://i.sstatic.net/sOZPu.png)](https://i.sstatic.net/sOZPu.png)
  
  Thanks
  
  Pradeep
  
  
  ---
  
  