Using Gravity Forms with Pardot on a Multi-Select Field
- June 20, 2020
- Form Handlers, Unfettered Marketing
Form Handlers are a really powerful tool in Pardot because they give you the option of using all kinds of other ways to built and execute a form, and then still collect your data in Pardot.
What makes them challenging, though, is that there are so many different tools to build forms and each one has their own little tricks and quirks.
One popular form creator for WordPress is Gravity forms. Jenna Molby wrote an excellent summary of how to do basic set up a Gravity Form with a Pardot form handler on her website, the details of which I won’t reproduce– the details are here and they are still accurate as of this writing.
Our concern today is advanced usage of a multi-select field input. I’m going to avoid calling out the field for the moment, because we’re going to work backward from Salesforce to describe the use-case.
Sometimes as Pardot admins we don’t have control over how the Salesforce team decided to implement fields. One common thing that trips us up is the Salesforce mult-select picklist. This is exactly what it sounds like– a picklist where you can select more than one element as valid. The marketing application that it’s commonly used for is product interest (I am interested in more than one thing).
So you should match it up with the Pardot multi-select dropdown field type, right?
Actually no. And here’s why. When a multi-select picklist field in Pardot contains more than one value, it syncs with the Salesforce multi-select picklist as a delimited list of values: item1, item2, item3– not as three distinct values.
So, depending on how your admins have set up field validation rules, you may get a sync failure (sending a delimited list is not valid), or you will get these flyer values in your data sets containing random strings of delimited results. So in reporting you get these combined items based on the delimited options, as shown in the pie chart.
What to do instead?
If you want to send the individual selections as discrete values to Salesforce, you use the Pardot checkboxes field type synched to the Salesforce multi-select picklist. (Here’s how) This allows more than one selection (even multiple selections captured at different points in time) to sync as individual items.
Which brings us to Gravity Forms, and the reason we started with Salesforce. If we’re not using the multi-select picklist in Pardot, neither should we use it in Gravity Forms, for the same reasons. Gravity forms will submit a delimited list of values from the multiselect picklist field type to your Pardot Form Handler, even if the field type is checkbox.
So instead, we should use the checkboxes option in Gravity Forms to capture multiple responses. This is the only way to get the discrete data we want over to Salesforce.
But there’s another little wrinkle in it as well. We can’t just blindly follow the normal formula to construct the URL string of &pardot_field={checkboxes} or we will get the same result of a delimited list. Instead, we must add a url item for each individual checkbox option. Gravity forms allows you to do this in the interface with the drop-down option– so don’t choose the field name, choose each individual item, and make one for each individual option. Simply repeat the Pardot external field name for each option as such: &pardot_field={checkboxes item 1}&pardot_field={checkboxes item 2} and so on.
By doing this, each checkbox shows up in the Pardot checkbox field as an individual option, and will sync to Salesforce’s multi-select field as individual items.
This leads us to our bonus form handler tip, which is: you can submit multiple values to the same Pardot field in a single form handler submission. This has other uses beyond the one described here, which I covered in this post on form handler tricks.
So remember: If you want to populate a multi-select picklist in Salesforce: use these field types:
Gravity Form: Checkboxes –> Pardot: Checkbox –> Salesforce: Mult-Select Picklist
One additional note with Gravity Forms. When submitting a field to a Pardot form handler using the URL redirect method, even though Gravity Forms allows a Label and Value option on a field, by default it’s sending the Label to Pardot. The value field is ignored. So if your field values on your Pardot checkbox don’t match the label on your Gravity form, you must use this workaround to get Gravity Forms to pass the value and not the label:
Instead of this (the default merge field):
{Dropdown:1}
use instead:
{Dropdown:1:value}
This Pardot article written by:Â Bill Fetter
Unfettered Marketing
A collection of random thoughts on how people, places and things in our fascinating world connect to sales and marketing, and what we can learn from it.
Original Pardot Article: https://www.unfetteredmarketing.com/post/using-gravity-forms-with-pardot-on-a-multi-select-field
Find more great Pardot articles at https://www.unfetteredmarketing.com/blog
Pardot Experts Blog
We have categorized all the different Pardot articles by topics.
Pardot Topic Categories
- Account Based Marketing (ABM) (7)
- Business Units (14)
- ChatGPT / AI (3)
- Completion Actions (5)
- Connectors (10)
- Custom Redirects (4)
- Data Cloud (2)
- Demand Generation (8)
- Dynamic Content (6)
- Einstein Features (12)
- Email Delivery (17)
- Email Open Rates (3)
- Pardot A/B Testing (2)
- Email Mailability (16)
- Do Not Email (1)
- Double Opt-in (2)
- Opt Out / Unsubscribe (14)
- Email Preferences Page (6)
- Engagement Studio (16)
- Industries (1)
- Non Profit (1)
- Landing Pages (9)
- Lead Generation (1)
- Lead Management (13)
- Lead Routing (3)
- Lead Scoring (16)
- Leads (3)
- Marketing Analytics – B2BMA (9)
- Marketing Automation (1)
- Marketing Cloud (3)
- Marketing Cloud Account Engagement (4)
- Marketing Cloud Growth (2)
- New Pardot Features (6)
- Opportunities (2)
- Optimization (2)
- Pardot Admin (64)
- Duplicates (1)
- Marketing Ops (1)
- Pardot Alerts (1)
- Pardot API (2)
- Pardot Automations (3)
- Pardot Careers (12)
- Pardot Certifications (4)
- Pardot Consulting (1)
- Pardot Cookies (3)
- Pardot Custom Objects (3)
- Pardot Email Builder (8)
- Pardot Email Templates (9)
- HML (6)
- Pardot Events (16)
- Pardot External Actions (1)
- Pardot External Activities (4)
- Pardot Forms (29)
- Form Handlers (8)
- Pardot Integrations (20)
- Data Cloud (1)
- Slack (1)
- Pardot Lead Grading (5)
- Pardot Lead Source (2)
- Pardot Lightning (1)
- Pardot Migration (1)
- Pardot Nurture / Drip Campaigns (1)
- Pardot Personalization (3)
- Pardot Profiles (1)
- Pardot Releases (18)
- Pardot Sandboxes (2)
- Pardot Segmentation (5)
- Pardot Strategy (7)
- Pardot Sync (2)
- Pardot Sync Errors (1)
- Pardot Tracker Domains (5)
- Pardot Training (3)
- Pardot Vs Other MAPs (4)
- Pardot Website Tracking (2)
- Reporting (22)
- Salesforce and Pardot (31)
- Marketing Data Sharing (2)
- Pardot Users (3)
- Salesforce Automation (5)
- Salesforce Flows (2)
- Salesforce Campaigns (20)
- Salesforce CRM (3)
- Record Types (1)
- Salesforce Engage (3)
- Salesforce Queues (2)
- Security and Privacy (1)
- Tags (3)
- The Authors (504)
- Cheshire Impact (9)
- Greenkey Digital (51)
- Invado Solutions (37)
- Jenna Molby (9)
- Marcloud Consulting (6)
- Nebula Consulting (60)
- Pardot Geeks (44)
- Salesforce Ben | The Drip (235)
- SalesLabX (3)
- Slalom (4)
- Unfettered Marketing (46)
- Uncategorized (1)
- Website Tracking (2)
- Website Search (1)
More Pardot Articles
See all posts
This Pardot article written by:Â Bill Fetter
Unfettered Marketing
A collection of random thoughts on how people, places and things in our fascinating world connect to sales and marketing, and what we can learn from it.
Original Pardot Article: https://www.unfetteredmarketing.com/post/using-gravity-forms-with-pardot-on-a-multi-select-field
Find more great Pardot articles at https://www.unfetteredmarketing.com/blog