<p>You can always make a 'Plain Text' field, named <code>iframe</code> and allow it to have multiple lines. You can put your embed code in there.</p>
<p>Then you can add the iframe in your template with <code>{{ entry.iframe|raw }}</code>.</p>
<p>For (a little) more info about the raw filter: <a href="https://twig.symfony.com/doc/3.x/filters/raw.html" rel="nofollow noreferrer">Here's the twig docs</a></p>

CC BY-SA 4.0
2021-04-30T21:37:06.473Z
2021-04-30T21:37:06.473Z
Joorren
<p>We are moving to a new Craft site and we have some forms that live on our form server. I am wanting to embed these forms into the appropriate pages.</p>
<p>There is a PHP file that I can download that looks Like this:</p>
<pre><code>&lt;?php 

date_default_timezone_set(@date_default_timezone_get());
header(&quot;p3p: CP=\&quot;IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\&quot;&quot;); 
session_start();

require(&quot;/var/www/html/machform/machform.php&quot;);

$mf_param['form_id'] = 10824;
$mf_param['base_path'] = 'https://myform.mydomain.com/';
$mf_param['show_border'] = true;
display_machform($mf_param);

?&gt;
</code></pre>
<p>Or I can get embed codes for iFrames, etc...What I don't see is a way to add the embed code into an existing page.  Is there a plugin for that? How do I edit the HTM to embed the form on the page?</p>
<p>Thanks for helping this Craft NooB.</p>

<form><embed>
I need to embed some forms into a new site
# I need to embed some forms into a new site

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

We are moving to a new Craft site and we have some forms that live on our form server. I am wanting to embed these forms into the appropriate pages.
There is a PHP file that I can download that looks Like this:


Or I can get embed codes for iFrames, etc...What I don't see is a way to add the embed code into an existing page.  Is there a plugin for that? How do I edit the HTM to embed the form on the page?
Thanks for helping this Craft NooB.

**Tags:** form, embed


---

## 1 answers

### Answer by username_1 on 2021-04-30. Score: 1

You can always make a 'Plain Text' field, named `iframe` and allow it to have multiple lines. You can put your embed code in there.

Then you can add the iframe in your template with `{{ entry.iframe|raw }}`.

For (a little) more info about the raw filter: [Here's the twig docs](https://twig.symfony.com/doc/3.x/filters/raw.html)


---

