Add this lines in macro: ``` {%- if trigger_print -%} <script> window.print(); window.close(); </script> {%- endif -%} ```