Answers.Body: <p>Mandatory was not the trigger of this.
  Fields of type: "Money" don't get printed in the e-mails.</p>
  
  <p>Another nice one!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-25T13:55:44.527Z
Answers.LastActivityDate: 2017-08-25T13:55:44.527Z
Answers.UserDisplayName: stijndmd
Body: <p>I'm using the Events - Registration Confirmation and Receipt (on-line) under the workflow messages in the e-mail templates.</p>
  
  <p>My event is using a custom Profile for the form fields.</p>
  
  <p><strong>The confirmation page in de event form flow is correctly showing ALL entered values.</strong></p>
  
  <p><strong>The confirmation e-mail however, is showing empty values for all fields that were made mandatory</strong> in the profile. Screenshot added:</p>
  
  <p><a href="https://i.sstatic.net/pXRLQ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pXRLQ.png" alt="enter image description here"></a></p>
  
  <p>The code from the e-mail template (from: civicrm/admin/messageTemplates?reset=1 => Events - Registration Confirmation and Receipt (on-line) ) I could work with is:</p>
  
  <p>{if $customPre}
  {foreach from=$customPre item=customPr key=i}
      {$customPre_grouptitle.$i}
     {foreach from=$customPr item=customValue key=customName}
     {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
       
           {$customName}
           {$customValue}
       
     {/if}
     {/foreach}
  {/foreach}
  {/if}</p>
  
  <p>This isn't telling me much, though.</p>
  
  <p>Any thoughts?</p>
  
Tags: <civievent><civimail>
Title: Event confirmation e-mail is showing empty values for the mandatory profile fields
ThreadText: # Event confirmation e-mail is showing empty values for the mandatory profile fields
  
  (Asked by: username_0 on 2017-08-25)
  
  I'm using the Events - Registration Confirmation and Receipt (on-line) under the workflow messages in the e-mail templates.
  
  My event is using a custom Profile for the form fields.
  
  **The confirmation page in de event form flow is correctly showing ALL entered values.**
  
  **The confirmation e-mail however, is showing empty values for all fields that were made mandatory** in the profile. Screenshot added:
  
  [![enter image description here](https://i.sstatic.net/pXRLQ.png)](https://i.sstatic.net/pXRLQ.png)
  
  The code from the e-mail template (from: civicrm/admin/messageTemplates?reset=1 => Events - Registration Confirmation and Receipt (on-line) ) I could work with is:
  
  {if $customPre}
  {foreach from=$customPre item=customPr key=i}
  {$customPre\_grouptitle.$i}
  {foreach from=$customPr item=customValue key=customName}
  {if ( $trackingFields and ! in\_array( $customName, $trackingFields ) ) or ! $trackingFields}
  {$customName}
  {$customValue}
  {/if}
  {/foreach}
  {/foreach}
  {/if}
  
  This isn't telling me much, though.
  
  Any thoughts?
  
  **Tags:** civievent, civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-08-25. Score: 1
  
  Mandatory was not the trigger of this.
  Fields of type: "Money" don't get printed in the e-mails.
  
  Another nice one!
  
  
  ---
  
  