<p>Welcome to Stack Exchange! Yes, your syntax is wrong - you need to remove the curly brackets around entry.contactForm.handle, and the quotations, and actually get the handle.</p>
<pre><code>{{ craft.freeform.form( entry.contactForm.handle,
    {
        instructionsBelowField: true
    }
).render() }}
</code></pre>
<p>Source: <a href="https://docs.solspace.com/craft/freeform/v3/template-functions/freeform.form.html#parameters" rel="nofollow noreferrer">Freeform docs</a></p>

CC BY-SA 4.0
2021-04-20T15:01:07.780Z
I tried this, but it actually returns the same error where it's trying to render a null variable.

"Impossible to invoke a method ("render") on a null variable."
Ben
CC BY-SA 4.0
2021-04-21T10:35:52.907Z
I've updated my answer; and you'll also want to wrap it in a conditional to make sure the form exists before you try to get it's handle.
darylknight
CC BY-SA 4.0
2021-04-20T07:06:20.120Z
2021-04-21T10:35:24.397Z
2021-04-21T10:35:24.397Z
darylknight
<p>I think you'll need <code>entry.contactFormHandle.handle</code>. Freeform's form select field doesn't select the form handle, it selects the <em>form</em>, so you need to get more specific in drilling down to the handle.</p>

CC BY-SA 4.0
2021-04-21T05:44:15.223Z
2021-04-21T05:44:15.223Z
James Smith
<p>I'm trying to pass an entry field type &quot;Formfield&quot; into a template. I have it working without passing any custom values through but when I do it outside of the render tag, No matter what I do I am getting an error saying null variable cannot render.  Thoughts?</p>
<p>ie: (Below works)</p>
<pre><code>{{ entry.contactFormHandle.render() }}
</code></pre>
<p>But: (Does Not) in many variables and difference does not...</p>
<pre><code>{{ craft.freeform.form(&quot;{entry.contactFormHandle}&quot;, {
                        labelClass: &quot;my-label-class&quot;,
                        inputClass: &quot;my-input-class&quot;,
                        submitClass: &quot;my-button-class&quot;,
                        instructionsBelowField: true,
                        overrideValues: {}
                    }).render() }}         
  
</code></pre>
<p>I'm sure it's something stupid. Any help would be appreciated!</p>

<craft3><form><plugin-freeform>
Rendering form from Entry Field
# Rendering form from Entry Field

(Asked by: username_0 on 2021-04-19)

I'm trying to pass an entry field type "Formfield" into a template. I have it working without passing any custom values through but when I do it outside of the render tag, No matter what I do I am getting an error saying null variable cannot render.  Thoughts?
ie: (Below works)
{{ entry.contactFormHandle.render() }}

But: (Does Not) in many variables and difference does not...
{{ craft.freeform.form("{entry.contactFormHandle}", {
                        labelClass: "my-label-class",
                        inputClass: "my-input-class",
                        submitClass: "my-button-class",
                        instructionsBelowField: true,
                        overrideValues: {}
                    }).render() }}         
  

I'm sure it's something stupid. Any help would be appreciated!

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


---

## 2 answers

### Answer by username_1 on 2021-04-20. Score: 1 | Accepted answer

Welcome to Stack Exchange! Yes, your syntax is wrong - you need to remove the curly brackets around entry.contactForm.handle, and the quotations, and actually get the handle.
{{ craft.freeform.form( entry.contactForm.handle,
    {
        instructionsBelowField: true
    }
).render() }}

Source: Freeform docs

> **Comments:**
> **username_0**: I tried this, but it actually returns the same error where it's trying to render a null variable.  "Impossible to invoke a method ("render") on a null variable."  
> **username_1**: I've updated my answer; and you'll also want to wrap it in a conditional to make sure the form exists before you try to get it's handle.  

---

### Answer by username_2 on 2021-04-21. Score: 0

I think you'll need `entry.contactFormHandle.handle`. Freeform's form select field doesn't select the form handle, it selects the *form*, so you need to get more specific in drilling down to the handle.


---

