on_sent_ok: “var sol = $(“input[name=radio-596]:checked”).val(); alert(“sol = “+sol); if(sol == “Dansk”){location = ‘https://osterport2.dk/wp-content/uploads/2017/05/prospekt.pdf’; } else {location = ‘https://osterport2.dk/wp-content/uploads/2017/05/prospekt-eng.pdf’;}”
I have installed
<script type=”text/javascript”>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘https://www.myurl’;
}, false );
</script>
in the functions.php
I need 2 different locations according to the content of the var
$(“input[name=radio-596]:checked”).val()
]]><script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘https://example.com/’;
}, false );
</script>
and i put this code in my admin theme panel in extra javascript … and working ..
but … with code on_sent_ok in each of my form i sent my customer to different thank you page … now with the script is not possible?
suggestions?
best regards
]]>I found that the CF7 ‘on sent ok’ is no working with WordPress 3.8
Is there any solution for this.?
https://www.ads-software.com/plugins/contact-form-7/
]]>on_sent_ok: "alert('ok');"
That doesn’t alert anything.
https://www.ads-software.com/extend/plugins/contact-form-7/
]]>