Custom Fields into PDF template #93
Answered
by
kevinpapst
igjunior
asked this question in
Questions & Answers
-
I would love to be able to get data from my custom fields in the timesheet into a custom PDF export. I've tried so many variations of something like this but nothing seems to work. Any ideas how to access the data into the twig template?
|
Beta Was this translation helpful? Give feedback.
Answered by
kevinpapst
Aug 24, 2023
Replies: 1 comment 3 replies
-
Almost: {% set customField = timesheet.getCustomField('fieldname') %}
{{ customField.getValue() }} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I didn't check because your code looked good 🤷
I added documentation at
https://www.kimai.org/documentation/export.html#pdf-templates