How do I turn the form code into an iframe? | Community
Skip to main content
Jen_Heidenreich
New Participant
July 17, 2018
Solved

How do I turn the form code into an iframe?

  • July 17, 2018
  • 2 replies
  • 3927 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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.)

2 replies

Jen_Heidenreich
New Participant
July 17, 2018

Perfect! Thank you.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
July 17, 2018

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.)