Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
177
rated 0 times [  180] [ 3]  / answers: 1 / hits: 26069  / 11 Years ago, mon, july 29, 2013, 12:00:00

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.


More From » wordpress

 Answers
6

on_sent_ok not working in Contact Form 7 normally indicates a Javascript conflict with either your current WordPress theme or one of the other plugins you are using - see Contact Form 7 Email Issues - there is a link there that covers Javascript Conflicts.



Remember that a problem in one script can cause issues in another.
For example, some jQuery errors can stop jQuery processing any more script, which can make the culprit hard to find.



A jQuery error in one of your plugins or your themes javascript files can stop jQuery processing before it gets to the CF7 script.



Use Firebug or Chrome Dev Tools to examine Javascript conflicts in detail.



See http://wiki.simple-press.com/installation/troubleshooting/plugin-conflicts/ for general guidance.


[#76679] Saturday, July 27, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aidengiancarlop

Total Points: 234
Total Questions: 115
Total Answers: 94

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;