<script> 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 ); </script>
The solution of this problem is that the open tag of <script> is missing on line 1338 in file: wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php.
-
This reply was modified 1 year ago by nnyonchev.