Title: MarkeyMark's Replies | WordPress.org

---

# MarkeyMark

  [  ](https://wordpress.org/support/users/markeymark/)

 *   [Profile](https://wordpress.org/support/users/markeymark/)
 *   [Topics Started](https://wordpress.org/support/users/markeymark/topics/)
 *   [Replies Created](https://wordpress.org/support/users/markeymark/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/markeymark/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/markeymark/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/markeymark/engagements/)
 *   [Favorites](https://wordpress.org/support/users/markeymark/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Is Conditional Redirect Possible?](https://wordpress.org/support/topic/plugin-contact-form-7-is-conditional-redirect-possible/)
 *  [MarkeyMark](https://wordpress.org/support/users/markeymark/)
 * (@markeymark)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-is-conditional-redirect-possible/#post-3059490)
 * Hi EfremJ,
 * I was having a similar issue, but trying to to a conditional redirect using a
   drop-down menu. I eventually got this to work. The link below takes you to the
   post I added requesting support. I’ve posted the working code on there.
 * [http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2?replies=3#post-3201230](http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2?replies=3#post-3201230)
 * Hope it helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Conditional redirect](https://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2/)
 *  Thread Starter [MarkeyMark](https://wordpress.org/support/users/markeymark/)
 * (@markeymark)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2/#post-3049372)
 * The code you need to add into the “Additional Settings” is as follows:
 * on_sent_ok: ” if (document.getElementById(‘paymenttype’).value==’Invoice’) {location.
   replace(‘[http://www.google.co.uk&#8217](http://www.google.co.uk&#8217);)} else{
   location.replace(‘[http://uk.yahoo.com/&#8217](http://uk.yahoo.com/&#8217);) }“
 * ‘paymenttype’ is the ID set on a drop-down menu & ‘Invoice’ is one of the selectable
   values.
 * Hope this helps somebody!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Conditional redirect](https://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2/)
 *  Thread Starter [MarkeyMark](https://wordpress.org/support/users/markeymark/)
 * (@markeymark)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect-2/#post-3049283)
 * OK, I’ve done a little digging & I’ve come up with this code:
 * on_sent_ok: “if (jQuery(“#payment-type”).value() == “Invoice”) {location.replace(‘
   [http://www.mysite.com/invoice/&#8217](http://www.mysite.com/invoice/&#8217););}”
 * The email submission works, but unfortunately the redirect doesn’t work at all
   now.
 * Is it possible do to a conditional redirect with CF7 or do I need to look for
   an alternative method?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)