Marketo forms in Kentico CMS | Community
Skip to main content
Level 2
August 5, 2021
Question

Marketo forms in Kentico CMS

  • August 5, 2021
  • 1 reply
  • 3360 views

We're in the process of implementing Marketo, but we can’t get the forms to work with our CMS (Kentico).

 

It just does not show up (test URL: bdo.dk/da-dk/services/moms/told/test-3 ). I have a suspicion that it is because the Marketo form becomes nested, but I’m not sure.

 

Has anyone had any luck with using Marketo forms in Kentico and if so, how did you make it work? And is it a problem with the CMS that can be fixed by developers?

1 reply

adrianfraguela
Level 3
August 5, 2021

It doesn't look like you have an HTML container for the form to live in. You need to add this line:

<form id="mktoForm_1004"></form>

 In Marketo you can pull the embed code which would give you something like this:

<script src="//462-YQN-293.mktoweb.com/js/forms2/js/forms2.min.js" type="text/javascript"></script> <form id="mktoForm_1004"></form> <script type="text/javascript">MktoForms2.loadForm("//462-YQN-293.mktoweb.com", "462-YQN-293", 1004);</script>
SanfordWhiteman
Level 10
August 5, 2021

It doesn't look like you have an HTML container for the form to live in.

Not exactly (unless the page has changed since you posted). The <form> element does exist in the initial HTML.

 

However, it’s inside another form, which is not allowed, so it will not be rendered.

 

There’s a giant form that wraps the entire body:

<body class="LTR Firefox DADK ContentBody" > <form method="post" action="/da-dk/services/moms/told/test-3" onsubmit="javascript&colon;return WebForm_OnSubmit();" id="form">

 

swarnich2Author
Level 2
August 6, 2021

Thank you both - much appreciated.

 

@sanfordwhiteman , your explanation is what I suspected. Any ideas to solving it (other than changing CMS)?