How do I display only a custom field value in an HTML invoice?
Problem Statement
How can I display only a custom field value, without its label, in an HTML invoice template?
Solution
In an HTML invoice template, the getCf helper displays the custom field label and value. For example:
{{getCf invoice.customer.customFields "cf_date"}}
The output includes both parts:
Date - August 7, 2026
To display only the value, replace getCf with getCfVal:
{{getCfVal invoice.customer.customFields "cf_date"}}
The output contains only the custom field value:
August 7, 2026
Important Notes
- This solution applies to HTML invoice templates.
- Replace
cf_datewith the API name of the custom field to display.
Was this article helpful?