I tried using the on_sent_ok
to redirect after form submit for Contact Form 7 (Wordpress plugin), but it doesn't work for some reason:
on_sent_ok: location.replace('http://www.company.com/thank-you/');
Why wouldn't this work?
I am using CF7 versions 2.2.1 and Wordpress 3.5.0.