I also tried switch/case, which also doesn’t work
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
switch ( event.detail.contactFormId ) {
case 1166:
location = ‘https://www.jix.ai/demos’;
break;
case 494:
alert( "494" );
break;
case 1201:
alert( "1201" );
break;
}
}, false );
</script>