When using Pardot Forms that are embedded as an iFrame, we use DOM event messages to pass the form submission data along and present a Calendar once Pardot verifies that the submission went through.
Note that this does not work with the native Pardot landing page implementation code, and the implementations are not interchangeable. If you update the code below, make sure you update it in all areas.
This article will cover how to successfully implement Chili Piper with Pardot forms embedded in an iframe:
- Add custom code to your Pardot form settings
- Optional
Look & Feel → Below Form Code Editor
To get this code, go to your Concierge Router > Embed, then select the Form type as Pardot and Location as Embed as an iframe or on Marketing Cloud Pages, and copy the code in the first Code Snippet's section.
In Pardot, navigate to your form, under "Look and Feel" open the "Below Form" Source code, and add the script below.
Paste the code in as shown here:
Hit Confirm & Save
Completed Actions → Thank You Code
Copy and add the second code snippet located in the Code Snippet section to the Completed Actions → Thank You Code. Ensure you still have selected Embed as an iframe or on Marketing Cloud Pages as Location.
Also ensure the following option is unchecked in the Completed Actions → Thank You Code tab in Pardot:
"Redirect to the following URL instead of showing the forms Thank you Content"
Parent Webpage Code
Copy and add the third code snippet located in the Code Snippet section to the Parent Webpage where the Pardot Embed HTML code resides.
Ensure you still have selected Embed as an iframe or on Marketing Cloud Pages as Location.
Custom field names using CSS class names
When looking for field names to use, we check the CSS class names first, then placeholders and labels. Sometimes your form labels need to be complex and include some simple instructions, making the label hard to read and use for mapping in Chili Piper. With this implementation, you can specify field names using CSS Class names in Pardot. This will make mapping easier and more predictable.
Here is how to specify a CSS class name on a Pardot field:
- Open your form in Pardot and click the Edit Button - Fields - Small Edit icon next to the field.
- From here, click on Advanced and enter a CSS Class name starting with "CP_".
For example, "CP_FirstName". - That's it! Now save and repeat for any other fields you want to specify a name for.
Exception Handling
In the event that you are using a Pardot Form that has 2 Columns (reference), this will require specific CSS Classes to achieve. To also have this work with Chili Piper:
- First input the form-col-1 or form-col-2
- Then space
- Then your CP_fieldname
It should look like the below within your Pardot Form configuration
When the page renders, you should expect to see the HTML on the page like the one below if configured properly:
Comments
0 comments
Please sign in to leave a comment.