• Resolved michael2369

    (@michael2369)


    Hello!

    I have a website where I used Contact Form 7 prior to the latest update. I had a form there which I needed specifically to submit to my own custom URL as I had a ready-made script that did some calculations based on the input data.
    What I did is just to use jQuery to update the form action attribute and it worked fine.
    Now, with the latest Contact Form 7 update, the action attribute seems to have no effect anymore (which is a bit confusing IMO as there is a filter hook function you can attach which would change the action attribute of the form, but maybe I am missing something?).
    As far as I see, the URL the form does an AJAX request to is hard-coded in the script at includes/js/scripts.js inside the function wpcf7.submit, where it uses the method $.ajax; so I am not quite sure what would be the best solution to my problem.

    What I would like to achieve is for the form to submit to my own custom URL somehow. Could anyone suggest a way to do this with the newest version of Contact Form 7?

    Kind regards,
    Michael.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Have a form submit to custom URL’ is closed to new replies.