Title: Conditional redirection ?
Last modified: September 1, 2016

---

# Conditional redirection ?

 *  [tibewww](https://wordpress.org/support/users/tibewww/)
 * (@tibewww)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/conditional-redirection/)
 * -2
    down vote favorite i’m trying to do a redirection on Contact form 7.
 * Example: If user have tick the checkbox A value, on submit, it will redirected
   to page 1. But If user have tick checkbox B value, it redirect the user on page
   2 for user.
 * All the thread I’ve ben reading speak about on_sent_ok , otherwise this doens’t
   seem to work since the late version from what I have been reading
 * `on_sent_ok: " if (document.getElementById('attending').value=='yes') {location.
   replace('/success')} else { location.replace('/not-attending') } "`
 * Any help ? It will be amazing !
 * Thanks
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

The topic ‘Conditional redirection ?’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [tibewww](https://wordpress.org/support/users/tibewww/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/conditional-redirection/)
 * Status: not resolved