0

I have a contact form in wordpress that has an income field which is a drop down. The options are 0-R9999 and R10000+. I have 2 thank you pages. I would like the form to go to a certain thank you page depending on the selection that was made in the drop down.

Any help?

1
  • Third party plugins are off-topic here. Please consult the support forum.
    – nmr
    Commented May 13, 2019 at 13:18

1 Answer 1

0

If you're okay with paying for a plugin, here's one that does exactly what you need:
https://querysol.com/product/contact-form-7-redirection/

Otherwise you need to write some code yourself, the documentation is here:
https://contactform7.com/redirecting-to-another-url-after-submissions/

The code itself needs to be extended a bit, e.g.

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
    if (jQuery('#yourdropdown').val() == '0') {
        location = 'http://example1.com/';
    } if (jQuery('#yourdropdown').val() == 'R9999') {
        location = 'http://example2.com/';
    }
}, false );
</script>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.