Skip to main content
August 28, 2014
Question

Embed form script on website without script tags

  • August 28, 2014
  • 2 replies
  • 1166 views
Does anyone know how to write script without including the <script> tags?

Our CMS, Sitefinity, won't allow the script tags to be included in the code:

Tips

Do not add <script> tag, it will be added automatically. Start writing your JavaScript directly.

Example:
var str = "Hello World!";


Here's the script I'd like to add to the 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 the <script> tag?

Thanks!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

gkrajeski
Level 10
August 28, 2014
We have adapted our Sitecore CMS platform to include an open text (plain HTML printout) field.

We also created a specific Javascript field area on some templates that is also open HTML where we can include <script> and/or <style> if desired
August 28, 2014