Seconddary language forms not submitted with WMPL
-
Looks like the latest update has caused quite some headaches. See also https://www.ads-software.com/support/topic/4-8-and-the-future-of-contact-form-7/.
In our case any submission of a secondary language form does nothing (the primary works). We have narrowed the problem down to the lateds update of CF7 and found this workaround https://wpml.org/errata/contact-form-7-secondary-language-form-submission-fails/, specifically:
Add this code to the theme’s functions.php file, found in the ../wp-content/themes/theme-name/ folder:
add_filter( 'wpcf7_load_js', '__return_false' );
Now the forms are submitted, but the redirection to a thank you page is not working anymore.
[contact-form-7 id="13699" title="Contact form 1"] <script> document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'https://www.docpath.com/contactusconfirmpop'; }, false ); </script>;
When will this be resolved? Is there a workaround to get the redirection working?
Kind regards,
André Klein
- The topic ‘Seconddary language forms not submitted with WMPL’ is closed to new replies.