String of text showing in PDF template depending on whether or not contact fields are filled

Hi,

We are trying to find a way to show a string of text (“Attn.” or For the Attention Of) in our invoice PDF template, but only when the first name and last name field in “contact” information are available.

For example: if a contact exists by the name of “Mr. Jason Donovan”, the address should be shown as such on the invoice:

Attn. Mr. Jason Donovan
Neighbors Company
Ramsay Street 24
Erinsborough
Australia

But if no contact information should be available (no specific contact selected in invoice or blank first and last name fields), the “Attn.” should also not be shown, thus:

Neighbors Company
Ramsay Street 24
Erinsborough
Australia

Is there a way to get this done without additional programming?

Thank you in advance,

Best regards,

Arnout

Hi,
Not possible without additional coding.