Tagged: enfold, form action, pardot
Hi,
According to Pardot’s KB I need to change a “form action” tag. instead of my own URL to go.pardot.com.
I’ve found a few posts online but none of them was straight to the point.
Where do I update it instead so it will show go.pardot.com URL instead of my own?
Hey Nadav,
You should be able to find it in enfold/framework/php/class-form-generator.php in line 140:
$this->output = '<form action="'.$params['action'].'" method="post" '.$form_data.' class="'.$form_class.' '.$extraClass.'" data-avia-form-id="'.$this->formID.'" '.$redirect.'><fieldset>';
Hope this helps.Also just to remind, that any modification done on the Enfold theme will be lost once you update the theme.
Best regards,
Nikko
Hi Nikko,
Thank you for the quick response.
Can you please highlight what exactly should I change? is it : form action=”‘.$params[‘action’].’ with form action=”‘.go.pardot.com[‘action’].’
BR,
Nadav.
Hi,
This part:
action="'.$params['action'].'"
replaced with:
action="go.pardot.com"
Just a caution also, this would affect all contact forms that uses the Contact Form from Advanced Layout Builder.
Best regards,
Nikko
Hi Nikko,
One more thing (I think). We have several forms already created. On the Pardot, we have several campaigns.
This change will affect all forms, as they were one. To my comprehensive any way.
How can I modify different URL to each form?
BR,
Nadav.
Hi Nadav,
Try to use conditional tags https://codex.wordpress.org/Conditional_Tags
Hope this helps :)
Best regards,
Nikko