我得到了答案。我们需要获取事件侦听器代码中的代码,如下所示:
<script type="text/javascript">
document.addEventListener( \'wpcf7submit\', function( event ) {
inputs = event.detail.inputs;
inputs.forEach( function(el) {
if ( el.name == "menu-52" ) {
if ( el.value == "Below $10,000" ) {
location.href = "https://www.facebook.com";
} else if ( el.value == "Above $10,000" ) {
location.href = "https://google.co.in";
}
}
});
}, false );
</script>
谢谢你。