Answers.Body: <p>We have run into this situation as recently as April 2022, but only in the case that an administrator registers someone for an event from the &quot;back end&quot;.</p>
  <p>If the user (logged in or not) registers for the event, they get the correct email with only the profile fields used in the registration process.</p>
  <p>Also, if the administrator pulls up an incognito browser window and registers as if they were the person they want to register, they receive the expected email.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-17T15:12:52.230Z
Answers.LastActivityDate: 2022-04-17T15:12:52.230Z
Answers.UserDisplayName: Rick Cunningham
Answers.Body: <p>Eric,
  Disabling those fields should remove them from the confirmation email. If you can't disable them (maybe they are from another active event), you can edit the Event Registration Confirmation and Receipt message and target the Event using $event.id (as in {if $event.id != "40"}do such and such{/if} ).
  Administer > CiviMail > Message Templates - System Workflow Messages
  Good luck!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-04T16:25:20.460Z
Answers.LastActivityDate: 2018-09-04T16:25:20.460Z
Answers.UserDisplayName: Greg
Answers.Body: <p>To tag on to Greg's response: if disabling the fields and/or modifying the Smarty receipt template won't work for you, check to ensure that the data sets in which those fields reside are specific to the types of events for which you want to use them.  I've seen a lot of clients over the years set up participant fields for all events and then get frustrated later because they 1) appear in emails and 2) make back-end registration a bit of a pain.  </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-04T17:19:45.843Z
Answers.LastActivityDate: 2018-10-04T17:19:45.843Z
Answers.UserDisplayName: Lesley Carter - BackOffice
Body: <p>We have created some custom fields/profiles to use with certain CiviEvent registrations. These profiles only display in the event registration when they are selected in the event setup - as expected. However, these profiles appear in the confirmation email despite not being selected for use in the registration. See image below - the highlighted area shows the proflies/custom fields that should NOT appear because they were not used in the event creation. How do I stop them being sent with the confirmation when they are not used?</p>
  
  <p><a href="https://i.sstatic.net/TyWop.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TyWop.jpg" alt="CiviEvent confirmation email"></a></p>
  
  <p>Thanks,
  Eric
  CiviCRM 5.4.1
  WP 4.9.8</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-04T17:14:17.813Z
Comments.Text: This are send from online or offline registration?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-04T17:25:50.567Z
Comments.Text: Online registration
Comments.UserDisplayName: Eric W
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-21T12:44:30.337Z
Comments.Text: I'd say this is bug. Expected behaviour is that custom fields should only display on an event conformation email when those fields are used in the event registration form. I can't see any rational use case where a participant would want to see field names that don't pertain to th event for which they are registered.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-19T07:13:38.217Z
Comments.Text: Not an answer to your question but an alternative approach: Try using the extension Event Communication ti send out configurable confirmation emails: https://docs.civicrm.org/eventmessages/en/latest/
Comments.UserDisplayName: Fabian
Tags: <civievent><custom-fields><profile><email><confirmation>
Title: CiviEvent Confirmation Email Displaying Profiles Not Used In Event
ThreadText: # CiviEvent Confirmation Email Displaying Profiles Not Used In Event
  
  (Asked by: username_0 on 2018-09-04)
  
  We have created some custom fields/profiles to use with certain CiviEvent registrations. These profiles only display in the event registration when they are selected in the event setup - as expected. However, these profiles appear in the confirmation email despite not being selected for use in the registration. See image below - the highlighted area shows the proflies/custom fields that should NOT appear because they were not used in the event creation. How do I stop them being sent with the confirmation when they are not used?
  
  [![CiviEvent confirmation email](https://i.sstatic.net/TyWop.jpg)](https://i.sstatic.net/TyWop.jpg)
  
  Thanks,
  Eric
  CiviCRM 5.4.1
  WP 4.9.8
  
  **Tags:** civievent, custom-fields, profile, email, confirmation
  
  > **Comments:**
  > **username_1**: This are send from online or offline registration?  
  > **username_0**: Online registration  
  > **username_2**: I'd say this is bug. Expected behaviour is that custom fields should only display on an event conformation email when those fields are used in the event registration form. I can't see any rational use case where a participant would want to see field names that don't pertain to th event for which they are registered.  
  > **username_3**: Not an answer to your question but an alternative approach: Try using the extension Event Communication ti send out configurable confirmation emails: https://docs.civicrm.org/eventmessages/en/latest/  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_4 on 2022-04-17. Score: 1
  
  We have run into this situation as recently as April 2022, but only in the case that an administrator registers someone for an event from the "back end".
  
  If the user (logged in or not) registers for the event, they get the correct email with only the profile fields used in the registration process.
  
  Also, if the administrator pulls up an incognito browser window and registers as if they were the person they want to register, they receive the expected email.
  
  
  ---
  
  ### Answer by username_5 on 2018-09-04. Score: 1
  
  Eric,
  Disabling those fields should remove them from the confirmation email. If you can't disable them (maybe they are from another active event), you can edit the Event Registration Confirmation and Receipt message and target the Event using $event.id (as in {if $event.id != "40"}do such and such{/if} ).
  Administer > CiviMail > Message Templates - System Workflow Messages
  Good luck!
  
  
  ---
  
  ### Answer by username_6 on 2018-10-04. Score: 1
  
  To tag on to username_5's response: if disabling the fields and/or modifying the Smarty receipt template won't work for you, check to ensure that the data sets in which those fields reside are specific to the types of events for which you want to use them. I've seen a lot of clients over the years set up participant fields for all events and then get frustrated later because they 1) appear in emails and 2) make back-end registration a bit of a pain.
  
  
  ---
  
  