I put "page breaks" in my multiple page forms and it works on the screen, but not on the printed product.

  • Profile Image
    danielmorganlaw
    Asked on October 09, 2015 at 11:56 AM

    I would like the page break location to also act a start of a new page when the form prints.

  • Profile Image
    beril
    Answered on October 09, 2015 at 03:13 PM

    Hi,

    You can add Page Breaks when printing form by adding javascript code to your source code with FotForm. I will explain how to do this step by step.

     

     

    Here is how to do this:

    1) Click on Setup & Embed.

     

    2) Click on Embed Form.

     

    3) Choose Source Code.

     

    4) Copy and paste your Source Code to Text File.

    5) Find the code of your Print Button then paste the yellow code below, after type="button" text.

    onclick="myFunction()"

     

     

    6) Paste the script code below to your form.

     <script> function myFunction() {

      document.getElementById("footer").style.pageBreakAfter = "always"; }

      </script>


     

    7) Save changes.

     

    Here is how it works when you click on Print Button.

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you