<p>To pull an individual field from a form, use the <code>form.get("myFieldHandle")</code> method.</p>

<p>Simple example using the <a href="http://docs.solspace.com/craft/freeform/v2/template-objects/field.html#methods" rel="nofollow noreferrer">field.render()</a> method:</p>

<pre><code>{% set form = craft.freeform.form("myFormHandle") %}

{{ form.get("firstName").render() }}
</code></pre>

<p>Or a more custom example:</p>

<pre><code>{% set form = craft.freeform.form("myFormHandle") %}
{% set firstName = form.get("firstName") %}

&lt;label&gt;{{ firstName.label }}&lt;/label&gt;
&lt;input name="{{ firstName.handle }}" value="{{ firstName.value }}" /&gt;
{{ firstName.renderErrors() }}
</code></pre>

<p><a href="http://docs.solspace.com/craft/freeform/v2/template-functions/freeform.form.html#usage-in-templates" rel="nofollow noreferrer">Examples from Freeform documentation</a></p>

<p>Note from the Freeform's docs:</p>

<blockquote>
  <p>When using with HTML blocks or Submit buttons, use the hash value provided in property editor in Composer as the handle. Example code would look like:
  {{ form.get('Ajx7jNxXL').render }}</p>
</blockquote>

CC BY-SA 4.0
2019-06-18T06:29:42.947Z
2019-06-18T06:29:42.947Z
Alex Roper
<p>Can we render some particular field from our FreeForm plugin ?</p>

<p>If yes, how can we achieve it ?</p>

<craft3><plugin-freeform><freeform>
Render Field from FieldHandler in FreeForm Craft CMS
# Render Field from FieldHandler in FreeForm Craft CMS

(Asked by: username_0 on 2019-06-17)

Can we render some particular field from our FreeForm plugin ?

If yes, how can we achieve it ?

**Tags:** craft3, plugin-freeform, freeform

---

## 1 answers

### Answer by username_1 on 2019-06-18. Score: 1

To pull an individual field from a form, use the form.get("myFieldHandle") method.
Simple example using the field.render() method:
{% set form = craft.freeform.form("myFormHandle") %}

{{ form.get("firstName").render() }}

Or a more custom example:
{% set form = craft.freeform.form("myFormHandle") %}
{% set firstName = form.get("firstName") %}

{{ firstName.label }}

{{ firstName.renderErrors() }}

Examples from Freeform documentation
Note from the Freeform's docs:

When using with HTML blocks or Submit buttons, use the hash value provided in property editor in Composer as the handle. Example code would look like:
  {{ form.get('Ajx7jNxXL').render }}


---

