So this one's kind of weird, but I've confirmed it in two environments, one running Forms 10.4.0 and one running Forms 10.4.2. I've created a custom HTML print button on my form (Code from here https://answers.laserfiche.com/questions/119766/print-form). When you click the button, it brings up the print dialog as expected, but if you cancel the dialog, it auto-submits the Form. If i hit the print button from the browser itself and cancel the dialog it does not auto-submit the form.
Does anyone know how or why this would be happening? I've tried a couple variations of code to print the form, and both do this. Any ideas on how to make it not submit after cancelling the print dialog?
<button onclick="myFunction()">Print Page</button> <script> function myFunction() { window.print(); } </script>
or
<button onclick="javascript:window.print()" class="btn-print">Print Form</button>