Embed Marketo Form 2.0
I need to embed the following script of a Marketo form onto our website:
<script src="//app-ab03.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_1010"></form>
<script>MktoForms2.loadForm("//app-ab03.marketo.com", "850-JUB-810", 1010);</script>
Does anyone know how to write the above script without including the <script> tags as Sitefinity requires?
Thanks in advance.
Hi Jonny,
The Marketo settings are under: Administration » Connector for Marketo.
If you need to use scripts on a Page/s you can add this code in a Master page and base the Page templates on it.
Alternatively, in case you want to add a script tags in the editor of the backend, you could check this blog post or use a JavaScript widget.
Regards,
Svetoslav Manchev
Telerik
Thanks Svetoslav,
I would like to add the script using the JavaScript widget, however, it requires that I remove the <script> tags in the code. How would I write the above code without <script> tags?
Also, I don't see the "Connector for Marketo" on our instance. We do have the enterprise package.
Thanks,
Jonny
Any help would be appreciated.
Hi Jonny,
I have provided an answer in the following forum thread:
http://www.sitefinity.com/developer-network/forums/general-discussions-/adding-script-tags-for-forms-0e11056ae615
Regards,
Pavel Benov
Telerik
Hi Pavel,
Unfortunately, there's a glitch with that thread. Nothing shows up. I can't read anything. Could you post what you placed in this thread?
Thanks so much.
Hello Jonny,
Here is my reply from the other thread:
Why is this so difficult to do? any other CMS works perfectly, just add the script and it works. with Sitefinity nothing works easily.
I have tried many methods of adding the form script to the page. Sometimes it works when I add four variations of that script to the page and header. But it never sits where I need it to sit.
The marketo connector is configured, but what does this have to to with implementing the form script on the page...