Marketo Forms

Marketo forms allows you to create and build forms that can be placed into Sitecore pages using a JS based embed code.

Key specs

  • Must include a form title above the form.
  • Form fields must include hint/placeholder text.
  • Form can be placed in main and right columns.
  • Requires Marketo login; discuss with your digital team representative.

Marketo Forms for Sitecore

A sample embed form from Marketo displaying on wtwco.com will look like this:

Marketo form embed on sitecore

Examples:

Steps to add a Marketo form to a sitecore page:

  1. Copy and paste the script below into a body text component in Sitecore.

  2. Select a Marketo form in Design Studio. Click on the “_Form Actions_” dropdown and select “_Embed Code_“.

    screenshot of copying Marketo form embed

  3. Copy and paste the highlighted section of the embed code below into the same bodytext component. Please do not copy the forms2.min.js script into Sitecore or extra code will be added into the body text component after saving.

    screenshot of copying Marketo form embed

  4. Final code example:

    screenshot of final Marketo embed code

     <code><script src="-/media/Feature/Resources/Javascript-Files/marketo-forms.js"></script>
     <h4>Embed Form Title</h4>
     <form id="mktoForm_1441"></form>
     <script>MktoForms2.loadForm("//app-sj31.marketo.com", "742-LZY-231", 1441);</script></code>
  5. Save the page and verify that the form is rendering correctly on the staging site.


Thank You/Confirmation Pages:

Examples:

Confirmation and thank you pages for Sitecore Marketo forms should use the approved banner image below.

Image Violet w/ Diagonal Stripes

Violet w/ Diagonal Stripes:

https://www.willistowerswatson.com/-/media/Images/violet-background-pattern.png