Creative Ways to Spice Up Your Pardot Forms: Part 1

In:

Looking for some creative ways to spice up your Pardot forms? In this post, I will show you how to implement the popular floating label technique in three easy steps. I will also show you how to turn your long drop down menus into user-friendly, searchable dropdowns.

This is part 1 of the 3 part series. Have you come accross a form recently and didn’t know to replicate the functionality in Pardot? Share it with me via email, a tweet @jennamolby, or in the comments.

1. Floating labels

You have probably seen this technique before. The label appears as placeholder text and when you click on the field the text moves out of the way and allows you to type. This technique can be applied to your Pardot forms in three steps.

Here’s an example of what it looks like. Click on the field to see the effect.

See the Pen Pardot form floated labels (Styled) by Jenna Molby (@jennamolby) on CodePen.



Adding this effect to your Pardot forms

Step 1: Edit your layout template

In order for this to work the labels within your forms must be placed below the fields. By default, the labels are above the form fields. To modify this, you will need to edit the layout template, click on the form tab and replace everything within the editor with the code below.





Step 2: Add the CSS

Add the CSS below to your layout template. This will create the effect of the floating labels for all form field other than radio buttons and checkboxes.



Step 3: Add the Javascript

In addition to the CSS, this method uses some Javascript. Place the code below within your layout template as well.



The result

Here’s what the floating labels look like after implementing all the code within the layout template.

See the Pen Pardot form floated labels (Simple) by Jenna Molby (@jennamolby) on CodePen.



2. Searchable dropdowns

I came across this technique when I was registering for a webinar recently. When I went to select my Country from the drop-down, I was greeted with a search feature for the drop-down. I immediately started Googling what JavaScript plugin they were using to see if I could use it on Pardot forms. It turns out, you can and not only is it super easy to implement, but it also makes long drop-down in your Pardot forms more user-friendly.

Demo

Here is what a searchable drop down looks like in action.

See the Pen Chosen.js Demo (Single Select) with Pardot Forms by Jenna Molby (@jennamolby) on CodePen.



Adding this effect to your Pardot forms

Navigate to your form and click edit form. Go to step 3: Look and Feel, click on the below form tab, click on the HTML icon and paste this code:

Update country with the name of your drop down field. Optionally, you can update the no_results_text to what ever you want to display when the no results are found for the searched term.

Questions?

Send them to me via email, send me a tweet @jennamolby, or leave a comment.

Related Posts

  • 17/06/2019
    How to Integrate Gravity Forms With Pardot

    Gravity Forms is one of the easiest tools to create advanced forms for your Wordpress website and with some customization they can be integrated with Pardot. In this post, I will show you how to integrate Gravity Forms using Pardot Form Handlers.

  • 05/02/2019
    How to Customize your Pardot Email Preference Page

    In this tutorial, I will show you how to turn the default Pardot email preference page into a preference page that matches your brand. You will learn how to customize everything including the header, footer, form, and text.

  • 11/12/2018
    Beautiful Pardot Forms: Styling Checkboxes and Radio Buttons

    Your Pardot forms don’t have to be boring. With a little extra CSS you can create beautiful Pardot forms with customized checkboxes and radio buttons. In this tutorial, I’ll show you how you can style checkboxes and radio buttons within Pardot forms with minimal coding.

16 comment(s)
  • George

    21/03/2019 at 3:43 am
    Reply

    Hi Jenna, Love this but i'm having a bit of trouble we ReCaptcha. The box isn't showing up on the form so everytime i try to submit it fails ...

    • Jenna Molby
      to George

      21/03/2019 at 3:05 pm
      Reply

      Hi George, Sorry you're having trouble with the reCaptcha. Can you send a link to your landing page to [email protected] and I can help you troubleshoot. Cheers, Jenna

  • Casey

    20/03/2019 at 1:27 pm
    Reply

    Hi Jenna - thanks so much for this! I had a question - I implemented this style on a Pardot landing page that I'm practicing with: https://go.deltarisk.com/l/513911/2019-03-19/cv44jh You can see at the bottom there is a checkbox field, asking if the user wants to sign up for the newsletter. But it looks like the label is still showing up below the field for that one. Anything I can do to correct this? Everything else looks perfect, my boss is really impressed : )

    • Jenna Molby
      to Casey

      20/03/2019 at 2:39 pm
      Reply

      Hi Casey, Nice job! Adding this CSS should fix the issue form.form span.value { position:absolute; top:35px; left:0; margin-left:0 !important; } form.form span.value label { margin-left:5px !important; } form.form p.submit { margin-top:40px !important; } Cheers, Jenna

  • Kacia

    06/03/2019 at 4:21 pm
    Reply

    I ended up pulling from your initial example and tweaking that - thanks! :)

  • Kacia

    06/03/2019 at 3:48 pm
    Reply

    Hey Jenna! I am IN LOVE with this form style. I'm struggling with the button :( I don't love the grey one it is defaulting to, but when I add CSS for the button, it's pushing it far to the right outside of the form margin. :/ I'm struggling here! HA!

  • Nicky

    02/03/2019 at 8:23 am
    Reply

    Thanks for this - it's great! Do the CSS and JS get pasted at the end of the layout template or at the top? My form labels are still showing underneath the text I'm entering into the fields and I'm not sure why?

    • Jenna Molby
      to Nicky

      02/03/2019 at 9:37 am
      Reply

      Hi Nicky, You're welcome! I recommend putting the CSS between the HEAD tags of your layout template and the Javascript right before the closing BODY tag. Cheers, Jenna

Leave A Comment

Your email address will not be published. Required fields are marked *

About Me

Welcome to my blog, where I share, tips, tricks, thoughts and solutions that I learn in my daily life as a sales and marketing professional.

LEARN MORE

Categories
Most Commented
Popular Posts