Home Forums Support How to add a pagebreak in invoice designer?

This topic contains 6 replies, has 3 voices, and was last updated by  Hexadroid 6 days, 23 hours ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21772

    Hexadroid
    Participant

    Hello,

    I’m selfhosting with a whitelabel. I have created my invoice design. However my Terms are split on two pages. I’m struggling to find how to add a pagebreak before them. Using a custom design based on playful preset

    Pasted the code here: https://pastebin.com/6xBJbFx4

    My Terms are at the bottom like so:

    },
    “$invoice.terms”,
    {

    I tried google’ing but any code involving adding some kind of pagebreak code has failed me.

    #21775

    Hillel Coren
    Keymaster
    #21776

    Hexadroid
    Participant

    I found that link aswell before posting here. I wasn’t able to get it working though.. I’ll try again.

    #21780

    Hexadroid
    Participant

    Sorry to bother. But is anyone who understand the code willing to help me out? I don’t know where or how to add the pagebreak code. I just want my terms to appear on the second page.

    Been trying all sorts of code from the example link you gave me, but I only get red crosses that say I’m garbage 🙂

    #22359

    Hexadroid
    Participant

    Sorry for the bump, but after all this time I still have this problem. I’m using a custom design based on the preset ‘playful’. My long text of terms span across the first and second page. Still can’t figure out how to put them on a seperate page. Anyone been able to figure this out?

    #22360

    CadmiumTelluride
    Participant

    Using your code I was able to put a line brake like so:

    
        ],
         "pageBreak": "after"
      },
      "$invoice.terms",
      {
        "stack": [
          "$invoiceDocuments"
        ],
        "style": "invoiceDocuments"
      }
    ]
    

    Cheers

    #22363

    Hexadroid
    Participant

    Thank you hero!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Posted in: