• Is there any way to hide rows in a table if that row is empty? We have a form where the user can enter the number of vendors they work with. I would like to be able to create a table on the PDF that displays a number of rows dependent on how many vendors the user inputs. So if the user enters five vendors, the table will have five rows, twenty vendors, the table will have twenty rows.

    Is there a way to accomplish this on the PDF with PHP code?
    Any help would be appreciated.

    Thank you,

    https://ww.wp.xz.cn/plugins/gravity-forms-pdf-extended/

Viewing 1 replies (of 1 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    This can be accomplished in a custom PDF template.

    If you use a List field empty rows are automatically removed for you, but if you just have 5 fields repeated 20 times I’d recommend placing them all in an array you can loop through. Then it’s just a matter of checking all the fields are empty in that array item and skip that row in the table.

Viewing 1 replies (of 1 total)

The topic ‘Hide table rows if empty’ is closed to new replies.