Features

document.addEventListener( 'wpcf7submit', function( event ) { var reference = Date.now().toString(36) + Math.floor(Math.pow(10, 12) + Math.random() * 9*Math.pow(10, 12)).toString(36); jQuery('input[name="wpcf7cfpdf_hidden_reference"]').val(reference); }, false );