How do I improve the look of my Marketo Form?

Avatar
Chris Broughton

Disclaimer: This article is provided for instructional purposes only. Vidyard does not support or guarantee the code. Vidyard also cannot offer support for third-party tools and platforms or technologies such as JavaScript, jQuery or CSS

Overview

Marketo Forms can be directly inserted into a Vidyard Action. This enables you to create the form and design it within Marketo. Once the form is available in Vidyard, it can be placed across your video assets to appear at various timepoints.

By default, Vidyard will place the form into the top left corner of the video frame. This could be ideal if your form is designed in a certain way, but centralizing it may provide a better output.

This article will take you from having a default that looks like this:

Marketo form with default styles

to something centralized and with a title, like this:

Marketo form with new styles

Steps

After creating a Marketo Form, you should be presented with some HTML code. Within the top section will be a style area as highlighted below:

HTML area with default code

To create the same design as in the screenshot above, replace this style area with the following code 

<style type="text/css">
.mktoForm {width: 100%!important;}
.form-container {margin: auto; display: table; margin-top: 7vw;}
.mktoOffset {display: none;!important}
.mktoButtonRow{width: 100%;}
.mktoButtonWrap{text-align:center!important;display:block!important;margin:auto!important;}
.form-title{font-family:"Helvetica",sans-serif;font-size:12px;text-align:center}
</style>
<div class="form-title">
<h1>Please submit form to continue...</h1>
</div>

It should now look like this:

HTML area with new code

On line 11, you can replace the title text to something of your choosing, or delete the text completely. You can also change the title font to match your branding if required (found on line 8). You may need to add additional code to import these if it's not a standard font.

Once that is set, you will want to adjust the Design Settings of the form. The example in the article is set to the following: the background colour is white, transparency is set to 50%, and blur is set to 20px. You may want a different colour or look, but you can use this as a place to start:

Event Design Settings. Transparency at 50%. Blur at 20px

The submit button colour, layout and text field styles can all be configured within Marketo. 

Have fun gathering those leads!

Need support

Submit a ticket or start a chat. We'll provide a self-serve resource or connect you with our support team, available 24x5.

Chat with Our Team