<p>Solution:</p>

<pre><code>{% if block.myFormField|length %}
    {{ block.myFormField.first().displayForm() }}
{% endif %}
</code></pre>

CC BY-SA 3.0
2016-02-25T06:40:03.357Z
2016-02-25T06:40:03.357Z
Leah
<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>

<templating><fieldtypes><plugin-amforms>
amforms: display form field
# 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, it says: 
{{ craft.amForms.displayForm('formHandle') }}

My matrix fieldname is called myFormField: 

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 %}


---

