Body: <p>I would like to be able to use case or if statements to include templates for the notification email, as overridden by the contact form extension plugin. However, no matter what I've tried, the first include is used. (in this case, an order form template, when sometime it should be the job application template or contact template).</p>
  <p>example code:</p>
  <pre><code>% if submission.form == &quot;Bestelformulier&quot; %}
      {% include 'example template 1' %}
  {% else %}
      {% include 'example template 2' %}
  {% endif %}
  </code></pre>
  <p>I have tried using &quot;submission.formName&quot; as well.</p>
  <p>The setting to override the notification works fine, using this file, its just what happens in the file doesn't seem to line up and work.
  Is there a way of doing this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-03T11:21:43.297Z
Comments.Text: Just as an experiment see what {{ submission.form }} outputs in your template to check what it's outputting.
Comments.UserDisplayName: dmatthams
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-03T11:43:01.107Z
Comments.Text: @user3788089 when {{ submission.form  }} is include, and the form is submitted, the page now redirects to a different form, instead of the thankyou page.... which makes no sense. Further, no template is used for the email, only the from email and from name are included
Comments.UserDisplayName: Ashley
Tags: <plugin-contactform><plugin-contactformextensions>
Title: contact form plugin conditional notification emails
ThreadText: # contact form plugin conditional notification emails
  
  (Asked by: username_0 on 2020-07-03)
  
  I would like to be able to use case or if statements to include templates for the notification email, as overridden by the contact form extension plugin. However, no matter what I've tried, the first include is used. (in this case, an order form template, when sometime it should be the job application template or contact template).
  
  example code:
  
  ```
  % if submission.form == "Bestelformulier" %}
      {% include 'example template 1' %}
  {% else %}
      {% include 'example template 2' %}
  {% endif %}
  
  ```
  
  I have tried using "submission.formName" as well.
  
  The setting to override the notification works fine, using this file, its just what happens in the file doesn't seem to line up and work.
  Is there a way of doing this?
  
  **Tags:** plugin-contactform, plugin-contactformextensions
  
  > **Comments:**
  > **username_1**: Just as an experiment see what {{ submission.form }} outputs in your template to check what it's outputting.  
  > **username_0**: @user3788089 when {{ submission.form  }} is include, and the form is submitted, the page now redirects to a different form, instead of the thankyou page.... which makes no sense. Further, no template is used for the email, only the from email and from name are included  
  
  ---
  
  ## 0 answers
  
  