How to hide/show line of table in PDF file in PDF Maker

Have you ever met with this situation?
You have a great template for Invoice but if for example discount = 0 you need to edit template and remove line because it does not looks so great.

If your answer is Yes then this article certainly helps you.

So how to edit your template to hide/show line based on field?

First at all, I have to say that this manual is only for PDF Maker Professional because you need to use Custom Function.

Let’s start:

  1. Find in your template line in table that you want to hide/show and click into this line
  2. Go to Other information tab
  3. And click on Custom functions
  1. Find its4you_if or its4you_isnull function and add into line you want to hide/shows (I recommend to use is4you_isnull)
  1. Now add your field (for example: $TOTALDISCOUNT$) into function:
    • its4you_if: [CUSTOMFUNCTION|its4you_if|$TOTALDISCOUNT$|=|0,00|whatToReturn1|whatToReturn2|CUSTOMFUNCTION]​
      or
    • its4you_isnull: [CUSTOMFUNCTION|its4you_isnull|$TOTALDISCOUNT$|whatToReturn1|whatToReturn2|CUSTOMFUNCTION]
  1. Replace whatToReturn1 with #HIDETR# and delete whatToReturn2
  1. Save your template and enjoy your PDF file

Share this post

Comments (2)

  • Jörg Droste Reply

    Hi,

    is it possible for Text-Fields like $INVOICE_ACCOUNT_ID$, to check if there is some predefined Text, to show or hide some text?

    November 22, 2019 at 7:17 am

Leave a Reply

Your email address will not be published. Required fields are marked *