Change the Hint Text Color on a Marketo Form

January 14, 2015 | by

Let’s say you want to change the hint text color (also referred to as the placeholder text) in Forms 2.0. This is possible via custom CSS. For example, in the screenshot below I made the hint text in this Marketo Form blue.

Screen Shot 2015-01-13 at 4.31.04 PM

There are three options on how to do this depending on how you are using Marketo Forms.

Option 1: If you are embedding a Marketo form, add the CSS below directly to your main CSS file.

Option 2: When you are embedding a Marketo form, you can add the CSS directly on the page between <style></style> tags in the <head> section.

Option 3: If you are using a Marketo form on a Marketo landing page, you can add this custom CSS through the Marketo UI.

Find the landing page in the Marketo navigation tree. Then click Edit Draft.

hint-text-1

Click Edit Page Meta Tags.

hint-text-2

Add the CSS below to the Custom HEAD HTML section. The <style></style> tags should be included.

hint-text-3

Click Approve Draft.

hint-text-4

When you now visit the Marketo landing page, the hint text will be the color you defined in the CSS.

Screen Shot 2015-01-13 at 4.31.04 PM

For more information about Marketo Forms, please visit the documentation.