<p>Is <a href="https://solspace.com/craft/freeform/docs/fieldtypes/#templates" rel="nofollow noreferrer">this</a> what you are looking for? </p>

<pre><code>{{ entry.myFreeformfieldname.render() }}
</code></pre>

CC BY-SA 3.0
2018-01-25T14:44:55.690Z
Thanks! I believe you need to use the craft.freeform.form tag to display the form but my question was what is the syntax to pass the form handle to that tag?
fodney
CC BY-SA 3.0
2018-01-25T14:48:21.957Z
You don't need that, `entry.fieldHandle` contains the form object which has the render method. The render tag grabs the form by handle and executes the render method so its basically the same but if you want to use it that way for whatever reason have a look at the documentation. `entry.fieldHandle.handle` contains the handle of the form
Robin Schambach
CC BY-SA 3.0
2018-01-25T15:14:33.063Z
Ok, thanks.  That one hasn't worked for me.  Anyway, so what is the syntax for passing the formhandle to that tag ie how do I get the formhandle into`{{ entry.myFreeformfieldname.render() }}`
fodney
CC BY-SA 3.0
2018-01-25T15:19:48.297Z
I stated it multiple times, it's all in the link I provided `entry.fieldHandle.handle` will return the form handle and you can render it with `craft.freeform.form(entry.fieldHandle.handle).render()` of course you need to insert a form in your cp and you have to replace the `fieldHandle` with the correct handle of your relationfield (I hope you did that) Anyway - if it does not work, could you `dump` your field? And tell if it is an instance of `freeForm`
Robin Schambach
CC BY-SA 3.0
2018-01-25T15:32:53.407Z
Finally got it working.  This is what I needed`{{ craft.freeform.form(block.form.handle).render() }}` Thank you for your help!
fodney
CC BY-SA 3.0
2018-01-25T15:35:29.410Z
Of course if your form is in an matrix element you need to use that block instead of an entry. We can't read your mind and if you don't show us your code nor your fields or your structure we can't know you did it that way. Glad you made it, next time you should provide more information otherwise we can only provide basic help. With this in mind: `block.form.render()` is a much better approach since you'll fetch the form twice currently
Robin Schambach
CC BY-SA 3.0
2018-01-24T17:26:22.293Z
2018-01-24T17:26:22.293Z
Robin Schambach
<p>I'm new to Craft and I'm trying to figure out how to place a form within an entry using a Solspace Freeform field.  Specifically I need to pass the form handle into the render tag to place that form on a particular page. </p>

<pre><code>{{ craft.freeform.form("formHandlefromfreeformfield").render() }}
</code></pre>

<p>Thanks!</p>

<plugin-freeform>
Pass field handle from to render tag using Freeform field
# Pass field handle from to render tag using Freeform field

(Asked by: username_0 on 2018-01-24)

I'm new to Craft and I'm trying to figure out how to place a form within an entry using a Solspace Freeform field.  Specifically I need to pass the form handle into the render tag to place that form on a particular page. 
{{ craft.freeform.form("formHandlefromfreeformfield").render() }}

Thanks!

**Tags:** plugin-freeform


---

## 1 answers

### Answer by username_1 on 2018-01-24. Score: 1 | Accepted answer

Is this what you are looking for? 
{{ entry.myFreeformfieldname.render() }}

> **Comments:**
> **username_0**: Thanks! I believe you need to use the craft.freeform.form tag to display the form but my question was what is the syntax to pass the form handle to that tag?  
> **username_1**: You don't need that, `entry.fieldHandle` contains the form object which has the render method. The render tag grabs the form by handle and executes the render method so its basically the same but if you want to use it that way for whatever reason have a look at the documentation. `entry.fieldHandle.handle` contains the handle of the form  
> **username_0**: Ok, thanks.  That one hasn't worked for me.  Anyway, so what is the syntax for passing the formhandle to that tag ie how do I get the formhandle into`{{ entry.myFreeformfieldname.render() }}`  
> **username_1**: I stated it multiple times, it's all in the link I provided `entry.fieldHandle.handle` will return the form handle and you can render it with `craft.freeform.form(entry.fieldHandle.handle).render()` of course you need to insert a form in your cp and you have to replace the `fieldHandle` with the correct handle of your relationfield (I hope you did that) Anyway - if it does not work, could you `dump` your field? And tell if it is an instance of `freeForm`  
> **username_0**: Finally got it working.  This is what I needed`{{ craft.freeform.form(block.form.handle).render() }}` Thank you for your help!  
> **username_1**: Of course if your form is in an matrix element you need to use that block instead of an entry. We can't read your mind and if you don't show us your code nor your fields or your structure we can't know you did it that way. Glad you made it, next time you should provide more information otherwise we can only provide basic help. With this in mind: `block.form.render()` is a much better approach since you'll fetch the form twice currently  

---

