Support » Plugin: Contact Form 7 » Redirecting After Submissions

  • gilshasha

    (@gilshasha)


    Hi.
    I’m looking for a solution for Redirecting to Another URL After Submissions From a specific form…
    I have a few forms and I want to create the Redirecting only from a single form.
    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Contact Form 7 Controls includes an easy to use option to do this.

    Hey my friend!

    You can use javascript for it, look:

    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    formId = event.detail.contactFormId;
    if(formId==’1′){
    location = ‘http://www.example.com/obrigado/?conversao=contato’;
    }else if(formId==’2′){
    location = ‘http://www.example.com/obrigado/?conversao=trabalhe-conosco’;
    }else if(formId==’3′){
    location = ‘http://www.example.com/obrigado/?conversao=orcamento’;
    }else{
    location = ‘http://www.example.com/obrigado/’;
    }
    }, false );

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