Happy Business Starts Here

Suppress Blank Invoice Address Line 2 in Invoice Template

Rajkumar
Zuora Support

Suppress Blank Invoice Address Line 2 in Invoice Template

Question:

Is it possible to have lines within the billing address be hidden if they are blank? If you look at the PDF I have attached, you can see that because we have a blank country code and a blank address line 2, those lines are showing up as spaces on the invoice and it looks bad. Please advise.

 

Solution:

We might need to use the IF condition in the Address 2 Line along with a Table where we can hide the table borders.

 

Rajkumar_1-1614753249625.png

Also, we can hide "IF" condition format, leaving the "BillToContact.Address2" mergefield. This is to remove the additional empty spaces in the Template.

 

Template Sample:

 

Rajkumar_2-1614754281054.png
PDF With Address 2:

Rajkumar_3-1614754280775.png


PDF Without Address 2:

Rajkumar_4-1614754281042.png

 

Attached the sample template where this could be achieved. 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √