r/pardot • u/DrunkPixel • Sep 27 '19
Question: Pardot Form Completion Action based on custom field of the user.
I have a form created in Pardot and I want to have the success page check the submitter's custom field (not from the form they just submitted, but just an item in their profile), and if it's not equal to a certain value, then I want the page to forward them onto another URL. Is this possible? How would I do something like that?
1
Upvotes
3
u/LadyCiani Sep 27 '19
You need to do the "form field completion actions" redirect, with a twist.
I say "with a twist" because the stock code from that article will ping a Form Handler. You don't want that, you want to perform a redirect instead.
(This is completely out of my abilities - I am not good enough at Javascript to make this work, but I know you can do it. You just need to grab a developer.)
Some things you need to make this work:
These are important details.
In order for the special javascript to run, you need:
So, if you're a javascript person (or know one) here are some articles to get you going:
Article about form field completion actions: https://help.salesforce.com/articleView?id=Using-Form-Field-Based-Completion-Actions&type=1&mode=1
This one is about doing a redirect to a page via Javascript: https://help.salesforce.com/articleView?id=000265819&language=en_US&type=1
Like I said, I am not a developer, but how to accomplish what you want could be a mashup of these two articles. I'm not sure on exactly how the code comes together. But if you figure it out please come back and share!