Answers.Body: <p>You don't need to (more specifically, you <em>can't</em>) nest Twig tags within other Twig tags. Ditch the inner Twig tag and its respective quotes, and just pass the variable directly into the outer Twig tag...</p>
  
  <pre><code>{% include entry.dropSubsection %}
  </code></pre>
  
  <p>That being said, I'm not sure this will achieve exactly what you're looking for. You may need to append <code>.value</code> as well...</p>
  
  <pre><code>{% include entry.dropSubsection.value %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-14T22:51:35.850Z
Answers.Text: Im still getting errors : Unable to find the template “{% include 'subnav_programs.html' %}”.
  
  I'm not sure its processing the quotes outputted from the dropdown properly.
  
  The dropdown value is:  'subnav_programs.html'
Answers.UserDisplayName: kingkelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-15T21:13:49.513Z
Answers.Text: That error message seems wrong, it should simply say `Unable to find the template “subnav_programs.html”.` If it's really spitting out the full Twig tag, then it looks like you are `include`ing a whole other `include` tag.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-13T22:25:07.617Z
Answers.LastActivityDate: 2018-01-13T22:25:07.617Z
Answers.UserDisplayName: Lindsey D
Body: <p>I'm trying to have this include be updated by the option I choose in my dropdown.</p>
  
  <pre><code>{% include 'subnav_programs.html' %}
  </code></pre>
  
  <p>My dropdown is called entry.dropSubsection</p>
  
  <p>I put <code>{% include '{{ entry.dropSubsection }}' %}</code> in my html file but it keeps giving me errors.</p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>Unable to find the template “{{ entry.dropSubsection }}”.</p>
  </blockquote>
  
Tags: <drop-down><include>
Title: Use value of a dropdown field for an `include`
ThreadText: # Use value of a dropdown field for an `include`
  
  (Asked by: username_0 on 2018-01-13)
  
  I'm trying to have this include be updated by the option I choose in my dropdown.
  
  ```
  {% include 'subnav_programs.html' %}
  
  ```
  
  My dropdown is called entry.dropSubsection
  
  I put `{% include '{{ entry.dropSubsection }}' %}` in my html file but it keeps giving me errors.
  
  I get this error:
  
  > Unable to find the template “{{ entry.dropSubsection }}”.
  
  **Tags:** drop-down, include
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-01-13. Score: 3
  
  You don't need to (more specifically, you *can't*) nest Twig tags within other Twig tags. Ditch the inner Twig tag and its respective quotes, and just pass the variable directly into the outer Twig tag...
  
  ```
  {% include entry.dropSubsection %}
  
  ```
  
  That being said, I'm not sure this will achieve exactly what you're looking for. You may need to append `.value` as well...
  
  ```
  {% include entry.dropSubsection.value %}
  
  ```
  
  > **Comments:**
  > **username_0**: Im still getting errors : Unable to find the template “{% include 'subnav_programs.html' %}”.  I'm not sure its processing the quotes outputted from the dropdown properly.  The dropdown value is:  'subnav_programs.html'  
  > **username_1**: That error message seems wrong, it should simply say `Unable to find the template “subnav_programs.html”.` If it's really spitting out the full Twig tag, then it looks like you are `include`ing a whole other `include` tag.  
  
  ---
  
  