Option to show/hide content from email template based on custom field data

I have an email template with some custom invoice fields.

Sometimes, these won’t be populated and thus I don’t want them to be displayed in the email template.

For example, I have one labelled “Service Job: $invoice.custom1”

This means that if I enter something like 12345 into the service job field, it will show up in the clients email as “Service Job: 12345”

Is it possible to hide specific content in the email if a field is left blank?

For example, in my email template I’d like to hide the “Service Job:” from the body, and the subject, if there is no data entered into the custom field.

Kind of like an “if” statement to show or hide content based on a field having something entered into it or not.

Hi,

I don’t believe this is currently supported, feel free to create an issue on GitHub to request it.