Answers.Body: <p>Solution:</p>
  
  <pre><code>{% if block.myFormField|length %}
      {{ block.myFormField.first().displayForm() }}
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-25T06:40:03.357Z
Answers.LastActivityDate: 2016-02-25T06:40:03.357Z
Answers.UserDisplayName: Leah
Body: <p>I'm trying to output an amform in a template that has been selected from a Form field. From the <a href="https://github.com/am-impact/amforms#simple-field-tag" rel="nofollow noreferrer">amform docs</a>, it says: </p>
  
  <pre><code>{{ craft.amForms.displayForm('formHandle') }}
  </code></pre>
  
  <p>My matrix fieldname is called <em>myFormField</em>: </p>
  
  <p><a href="https://i.sstatic.net/qTtSj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qTtSj.png" alt="enter image description here"></a></p>
  
  <p>so:</p>
  
  <pre><code>{{ craft.amForms.displayForm('{{block.myFormField}}') }}
  </code></pre>
  
  <p>But it doesn't look like craft is parsing <em>{{block.myFormField}}</em>:</p>
  
  <pre><code>No form exists with the handle “{{block.myFormField}}”.
  </code></pre>
  
  <p>Any thoughts?</p>
  
Tags: <templating><fieldtypes><plugin-amforms>
Title: amforms: display form field
ThreadText: # amforms: display form field
  
  (Asked by: username_0 on 2016-02-23)
  
  I'm trying to output an amform in a template that has been selected from a Form field. From the [amform docs](https://github.com/am-impact/amforms#simple-field-tag), it says:
  
  ```
  {{ craft.amForms.displayForm('formHandle') }}
  
  ```
  
  My matrix fieldname is called *myFormField*:
  
  [![enter image description here](https://i.sstatic.net/qTtSj.png)](https://i.sstatic.net/qTtSj.png)
  
  so:
  
  ```
  {{ craft.amForms.displayForm('{{block.myFormField}}') }}
  
  ```
  
  But it doesn't look like craft is parsing *{{block.myFormField}}*:
  
  ```
  No form exists with the handle “{{block.myFormField}}”.
  
  ```
  
  Any thoughts?
  
  **Tags:** templating, fieldtypes, plugin-amforms
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-02-25. Score: 4
  
  Solution:
  
  ```
  {% if block.myFormField|length %}
      {{ block.myFormField.first().displayForm() }}
  {% endif %}
  
  ```
  
  
  ---
  
  