How to custom redirect page at contact form 7 using javascript?
I'm using this function.
function redirect() {
var v = document.getElementsByClassName("wpcf7-select")
if (v.options[v.selectedIndex].value =="options selected " ){
window.location = 'http://www.dominion.com/thankyou';
}
else{
window.location = 'http://www.dominion.com/thankyou2';
}
}
**additional configurations**
on_sent_ok: "redirect()";
what is the error?