Contact Form 7
Form redirect after submit (1 post)

  1. Dinesh Kesarwani
    Posted 3 years ago #

    In CF7 we use the below code to redirect, after form submit.
    on_sent_ok: "location.replace('http://www.YOURSITE.com');"

    I am redirecting multiple pages using multiple forms with same form structure. Like :
    Page 1 => Form with Name, URL and Message => http://www.url-1.com
    Page 2 => Form with Name, URL and Message => http://www.url-2.com
    Page 3 => Form with Name, URL and Message => http://www.url-3.com

    It is possible to add the code like below in all pages with separate redirection url.
    Page 1 => [contact-form-7 id="1" title="Form-1" redirect="www.url-1.com"]
    Page 2 => [contact-form-7 id="1" title="Form-1" redirect="www.url-2.com"]
    Page 3 => [contact-form-7 id="1" title="Form-1" redirect="www.url-3.com"]


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Dinesh Kesarwani
  • This topic is not resolved
  • WordPress version: 3.3.1