Geting values for multipart form elements using Twig Whereever you are, I hope you're fairing well under the circumstances. To some of the hardest hit areas, we are thinking of you constantly.

Webform Advanced Elements

I am having difficulty retrieving submitted values from Drupal 8.8.4 Webform 5.9 multipart elements using Twig. Standard, single form field, values work fine, however elements such as Name and Advanced Address do not. Both of latter elements have multiple form fields (e.g. first, middle, last name; or street, city, country...) and may be dynamic (e.g. pick a country before completing address).

In my case, I am using the Attachment PDF and a custom Twig template to generate a PDF file attachment that is returned to the user, however I can see the same result using Twig in an e-mail, or the generated test e-mail preview.

Testing:

A simple text field works correctly:

&lt;p&gt;Dated: {{ data.date }}&lt;/p&gt; (works)

Name and Advanced Address are blank:

&lt;p&gt;{{ data.my_name }}&lt;/p&gt; (blank)

&lt;p&gt;{{ data.my_address }}&lt;/p&gt; (blank)

Tokens Work, Sort Of

For what it's worth, the multipart values are available using tokens in the e-mail body, albeit I can't get portions of the values, which is the objective. What I mean by this is that an entire complete address will be returned, on multiple lines, but getting just the street name doesn't work (for me).

Using the examples above:

[webform_submission:values:my_name] (returns John Smith)

It also wasn't possible to retrieve just a street address:

[webform_submission:values:address] (returns stree, city, state/prov., country on mutiple lines)

I've really been stumped, and I'm surprised it is so hard to find the answer. Perhaps I'm not working the question correctly, this is more of a hobby project. Thank you for suggestions.
I think you are just overlooking something simple here. The 'multi part form elements' is called a composite element. And it holds an array of values of its subfields. 

Let's say the composite parent is called 'name', and it has a subfield called first_name, then you can use {{ data.name.first_name }} to get the first name in twig. 

As for webform submission token, you can try something like [webform_submissions:values:name:first_name]