on sent ok: Link to two different locations according to user interaction.
-
I used to use this code, but now it doesnt work anymore.
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()
- The topic ‘on sent ok: Link to two different locations according to user interaction.’ is closed to new replies.