Created
March 12, 2019 19:12
-
-
Save adamlaki/6b49f8c7ce7578b2933c13b7d787983c to your computer and use it in GitHub Desktop.
Contact Form 7 Thank You Page Redirects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
if ( '101' == event.detail.contactFormId ) { | |
location = 'https://www.example.com/thank-you-page-one/'; | |
} else { | |
location = 'https://www.example.com/thank-you-page-two/'; | |
} | |
}, false ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment