SOLVED

How do I turn the form code into an iframe?

Go to solution
Jen_Heidenreich
Level 2

How do I turn the form code into an iframe?

I want to load a Marketo form onto our website, but our website does not allow for <script> coding. It will allow for an iframe. Here is the form code:

<script src="//app-sjo.marketo.com/js/forms2/js/forms2.min.js"></script>

<form id="mktoForm_1511"></form>

<script>MktoForms2.loadForm("//app-sjo.marketo.com", "452-ZON-215", 1511);</script>

I appreciate your assistance.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How do I turn the form code into an iframe?

You don't "turn" code into an IFRAME.

You put your form on a Marketo LP. Then you add an IFRAME whose src attribute is the Marketo LP URL.

(Obviously this is a suboptimal way to use Marketo forms. It also will not work if your external domain is running over https but your Marketo LP domain is not.)

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: How do I turn the form code into an iframe?

You don't "turn" code into an IFRAME.

You put your form on a Marketo LP. Then you add an IFRAME whose src attribute is the Marketo LP URL.

(Obviously this is a suboptimal way to use Marketo forms. It also will not work if your external domain is running over https but your Marketo LP domain is not.)

Jen_Heidenreich
Level 2

Re: How do I turn the form code into an iframe?

Perfect! Thank you.