Summary
While using a Forms process to create a Print button, you notice that in a specific instance, the process shows to be completed, but an error appears stating that no outflow criteria was met. For example:
<button class="printButton" onclick="printPage()">Print Page</button> <script> function printPage(){ $(‘.printButton’).hide(), Window.print(); $(‘.printButton’).show(10); } </script>
Cause
The button element's type attribute was not defined.
Resolution
You must define the type attribute, in this case by setting type="button" in the code.
<button class="printButton" type = "button" onclick="printPage()">Print Page</button> <script> function printPage(){ $(‘.printButton’).hide(), Window.print(); $(‘.printButton’).show(10); } </script>