- 🇮🇩Indonesia tinohuda
Hi @Kris77
Thank for your code above.
I can use {{ content }} and all content can be print out in pdf.
But how to print out particular webform elements label and its values?
I try to use {{ data.field1 }} but nothing printed.
Please help anyone and thank before.
- 🇨🇦Canada orizonmedia
@tinohuda did you make this working in D9? I added the preprocess to my .theme but still unable to print element with {{ data.field1 }} {{ elements.processed_text_01 }} ...
- 🇨🇿Czech Republic milos.kroulik
First of all, this probably doesn't belong here.
Anyway, the solution in https://www.drupal.org/project/entity_print/issues/3136298#comment-13843190 💬 Print webform element in twig template file Active doesn't work now, because
$variables['content']
contains only already rendered HTML. But in the same preprocess, there's actually a$webform_submission
variable available. - 🇮🇩Indonesia tinohuda
@orizonmedia I use {{ webform_submission.data.field1 }} and its worked. To make sure i use the Devel.