function send_info_to1c_id5($cf5){
......
}
add_action( 'wpcf7_before_send_mail', 'send_info_to1c_id5');
document.addEventListener( 'wpcf7submit', function( event ) {
if ( '123' == event.detail.contactFormId ) {
alert( "The contact form ID is 123." );
// do something productive
}
}, false );