• This is more of a feature request. It would be great if there could be a custom form action tag in the plugin to override the default action. For example, sometimes we need to post a form to a 3rd party handler such as Salesforce or Pardot. Pardot form handlers have specific form action tags that look like this:

    <form action=”http://example.pardot.com/url/2dsjw&#8221; method=”post”>

    If you could create a method in the plugin to configure it in a tag like this:

    [action “http://example.pardot.com/url/2dsjw&#8221; post]

    and make the plugin post only this form using this action, that would be great. There are numerous people asking for this, and note that this is NOT a redirect. It should be this simple. Many of us don’t know anything about programming custom hooks to do this. I’m surprised that this has not been done long ago. There’s always a need to post via different URL actions.

    Thanks,

    Tony

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @tracomfg,

    You may try using the wpcf7_form_action_url filter hook, this way:

    add_filter('wpcf7_form_action_url', function() {
    	return 'https://example.com/';
    });

    Hope it helps you.

    Best regards,
    Yordan.

    Thread Starter tracomfg

    (@tracomfg)

    Again, I don’t want to try to program a filter hook. Some themes don’t provide a functions.php file to put in a custom function like the one my site uses. I’m asking for a feature to have a place in the plugin on the back end to simply enter a URL for the post action so it applies to that form only. Putting in a hook as you describe will make all forms post to the same place which I don’t want. For example, I want one form to post normally, and I want another form to post to a Salesforce/Pardot form handler, but I can’t do that unless there’s a way to tell only the one form to post to the form handler URL.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature Request: Custom form action tag’ is closed to new replies.