Answers.Body: <p>According to <a href="https://lab.civicrm.org/dev/core/issues/766" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/766</a> this looks like it has now been fixed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-28T22:22:00.030Z
Answers.Text: yes, I have tested it, it is fixed in the latest version.
Answers.UserDisplayName: Stoycho
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-26T04:51:20.957Z
Answers.Text: Bug is back, see https://lab.civicrm.org/dev/event/-/issues/58
Answers.UserDisplayName: Justin Freeman - Agileware
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-28T18:10:09.180Z
Answers.LastActivityDate: 2019-11-28T18:10:09.180Z
Answers.UserDisplayName: Luke Stewart
Body: <p>On the demo site - <a href="http://wpmaster.demo.civicrm.org/wp-admin/" rel="noreferrer">http://wpmaster.demo.civicrm.org/wp-admin/</a> I have created a new set of custom fields for Events - "Events custom fields" with one text field - "test1".<br>
  I have added value "tst" for this custom field in the event template "Free Meeting with Online Registration". <a href="https://i.sstatic.net/wdfxY.png" rel="noreferrer"><img src="https://i.sstatic.net/wdfxY.png" alt="enter image description here"></a></p>
  
  <p>When using this template on a new event the custom field value is not populated with what's in the template. Do I have to use hook to copy over custom data? If so what's the hook? <a href="https://i.sstatic.net/d0dmb.png" rel="noreferrer"><img src="https://i.sstatic.net/d0dmb.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/F7lOx.png" rel="noreferrer"><img src="https://i.sstatic.net/F7lOx.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T06:05:56.020Z
Comments.Text: Did you consider, or try, adding the default value in the custom field itself?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T09:07:54.413Z
Comments.Text: The default value in the custom field itself works on both event template and new event BUT this is not an option, you may have different values in the different templates and you want the value coming from the template.
Comments.UserDisplayName: Stoycho
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T17:08:08.653Z
Comments.Text: Right, yes that makes sense.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-13T17:02:39.853Z
Comments.Text: It seems something civicrm does support just yet (i.e. hook has to be used to copy over custom data). If civicrm dev can confirm?
Comments.UserDisplayName: Stoycho
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-16T09:01:43.677Z
Comments.Text: * does NOT support just yet
Comments.UserDisplayName: Stoycho
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-16T17:02:56.857Z
Comments.Text: Previous versions of CiviCRM did copy over custom data fields. The custom data fields stopped being copied over from event templates in version 4.7.x or one version earlier. We have been hoping that this would be addressed in current version, but it appears that it has still has NOT been addressed in CiviCRM 5.4.0. We have confirmed that custom data fields values in event templates on our development site running Drupal 7.56 and CiviCRM 5.4.0 are NOT copied when creating an event from an event template.
Comments.UserDisplayName: 509tyler
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-15T16:16:19.163Z
Comments.Text: I can confirm @509tyler's observations with Drupal 7.58 and Civi 5.3.1. Is there a road map for this feature returning?
Comments.UserDisplayName: Andyg8
Tags: <wordpress><civievent><custom-fields>
Title: new event From Template does not copy custom fields
ThreadText: # new event From Template does not copy custom fields
  
  (Asked by: username_0 on 2017-10-02)
  
  On the demo site - <http://wpmaster.demo.civicrm.org/wp-admin/> I have created a new set of custom fields for Events - "Events custom fields" with one text field - "test1".  
  I have added value "tst" for this custom field in the event template "Free Meeting with Online Registration". [![enter image description here](https://i.sstatic.net/wdfxY.png)](https://i.sstatic.net/wdfxY.png)
  
  When using this template on a new event the custom field value is not populated with what's in the template. Do I have to use hook to copy over custom data? If so what's the hook? [![enter image description here](https://i.sstatic.net/d0dmb.png)](https://i.sstatic.net/d0dmb.png)
  
  [![enter image description here](https://i.sstatic.net/F7lOx.png)](https://i.sstatic.net/F7lOx.png)
  
  **Tags:** wordpress, civievent, custom-fields
  
  > **Comments:**
  > **username_1**: Did you consider, or try, adding the default value in the custom field itself?  
  > **username_0**: The default value in the custom field itself works on both event template and new event BUT this is not an option, you may have different values in the different templates and you want the value coming from the template.  
  > **username_1**: Right, yes that makes sense.  
  > **username_0**: It seems something civicrm does support just yet (i.e. hook has to be used to copy over custom data). If civicrm dev can confirm?  
  > **username_0**: * does NOT support just yet  
  > **username_2**: Previous versions of CiviCRM did copy over custom data fields. The custom data fields stopped being copied over from event templates in version 4.7.x or one version earlier. We have been hoping that this would be addressed in current version, but it appears that it has still has NOT been addressed in CiviCRM 5.4.0. We have confirmed that custom data fields values in event templates on our development site running Drupal 7.56 and CiviCRM 5.4.0 are NOT copied when creating an event from an event template.  
  > **username_3**: I can confirm @username_2's observations with Drupal 7.58 and Civi 5.3.1. Is there a road map for this feature returning?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2019-11-28. Score: 3 | Accepted answer
  
  According to <https://lab.civicrm.org/dev/core/issues/766> this looks like it has now been fixed.
  
  > **Comments:**
  > **username_0**: yes, I have tested it, it is fixed in the latest version.  
  > **username_5**: Bug is back, see https://lab.civicrm.org/dev/event/-/issues/58  
  
  ---
  
  