Contact Form 7 – Conditional redirect on submit
-
Contact Form 7 v3.7.2
I need a simple conditional on the submit based on form value.
on_sent_ok: "if (document.getElementById('payment_type').value=='PayPal') {location.replace('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SHZBS42EVTKQC')} else { location.replace('http://www.wordpress.org') }"No matter what it won’t redirect based on the value.
A similar problem was reported but no resolution posted.
http://wordpress.org/support/topic/plugin-contact-form-7-is-conditional-redirect-possible?replies=53 yr/old post addresses same issue where change to js is suggested. Have tried to no avail. http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect?replies=15
Thanks!
The topic ‘Contact Form 7 – Conditional redirect on submit’ is closed to new replies.