Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #793292

    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?

    #793323

    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

    #793334

    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.

    #793363

    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

    #793474

    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.

    #793697

    Hi Nadav,

    Try to use conditional tags https://codex.wordpress.org/Conditional_Tags
    Hope this helps :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.