GDPR and CASL compliance are just a few reasons to add an explicit opt-in message or a privacy policy to your Pardot forms. In this post, I’ll show you how to add a custom opt-in message to your form and a privacy consent message above the form submit button.

Adding an opt-in checkbox

Add your opt-in field to your form and remove the label text.

Navigate to the values tab and input the values for the checkbox. The first box contains the value that will be stored in the Pardot database (in my form the stored value is yes). The second box contains the value that will be displayed to the prospect completing the form. In this case, it’s the opt-in message.

Save and preview your opt-in message. Here’s what mine looks like.

Add links and other formatting

You can add HTML to your opt-in message to include links, bold text, etc, by adding it directly as the display value.

Yes, I would like to receive emails from Jenna Molby with exclusive updates on product news, invitations to events and webinars and resource alerts. I may unsubscribe at any time.

When you preview the message within the editor, it will show the HTML tags, but when you view the live form, it will display the correct HTML.

Adding a privacy policy message

Before the submit button

You can add a privacy policy above the submit button by adding javascript to your form.

Custom JavaScript can be placed within your Pardot forms under Look and Feel > Below Form. Click on the HTML button within the WYSIWYG editor and add in the JavaScript.

Edit the javascript below to include your privacy policy message.


Here’s what my form looks like once the privacy poilcy message has been added.

Some CSS can be added to the form to style the privacy policy message.


As a consent checkbox

You might require prospects to “check” a privacy consent checkbox in order to submit the form. This can be added the same way the opt-in checkbox was configured above.

Questions?

Send me a tweet @jennamolby, leave a comment below, or book a Peer Chat.

Author

I'm a Freelance Marketing Operations Consultant With 15 years of experience in Marketing Operations, I’ve worked with a wide range of tools including Salesforce, Marketing Cloud Account Engagement (Pardot), Marketo, and many other sales and marketing platforms. I help teams optimize their tech stacks, improve processes, and get accurate, actionable reporting. Whether it’s setting up your Marketing Automation Platform, building Salesforce reports, managing lead lifecycles, tracking attribution, or integrating your tech stack, I ensure everything is aligned to drive real results.

33 Comments

  1. Sébastien Reply

    Hello Jenna and thank you for all you do.

    I am currently investigating the opt-in question in Pardot.

    Creating a form is the first step but my question is more about how to manage this at long term. How to manage this field when the prospect opt-outs. How to manage this field between Salesforce and Pardot the best way. How to use this field in relation with the standard Opt-out field. Have you made any content on this topic ?

    • Jenna Molby

      Hi Sébastien, I don’t have any content on this topic, but that’s a great suggestion! I recommend using an opt-in field to capture opt-ins and then use the standard Pardot unsubscribe field to capture unsubscribes.

  2. Hi Jenna, In my form the consent checkbox and the writing are showing in two separate line. Any ideas?

    • Jenna Molby

      Hello! Send me the link to your form and I can take a look.

  3. Thainternut Reply

    I am doing a relaunch of a very old site and would like to use this option. I have 2 questions: 1) how do I change the color on the privacy message; and 2) You referenced using the following code to align the op-in text, but where do I put it?

    .Opt_In_Checkbox {
    margin-left:0 !important;}

    Thanks in advance for your help!

    • Jenna Molby

      Hello! The code can be placed in your layout template.

    • Jenna Molby

      Hi Peyton, Adding this CSS to your from will do the trick:

      .Opt_In_Checkbox {
      margin-left:0 !important;
      }

  4. Hi Jemma,
    I’m combining this technique with your other FontAwesome technique to also style the checkbox, however the consent text is now wrapping under the checkbox. Any idea on how to stop this?
    Thanks Steve

    • Jenna Molby

      Hi Steve, Send me an email with the link to your form and I can take a look.

Write A Comment