- Issue created by @dejan0
Please find the patch attached. This change will correctly handle both nested (ie `person.gender`) and flat (ie `email`) field keys
In https://www.drupal.org/project/activecampaign/issues/3471575 ✨ Add support for drupal webform composite fields Active , we added support for mapping Webform composite fields.
However, we noticed that mapping could also be handled via the custom data mapping field (e.g., for custom ActiveCampaign fields).
I tested whether dot notation would already work - for example:
```
field[%GENDER%,0]: 'person.gender'
```
(where person is a Webform composite field and gender is a subfield),
but it didn’t work as expected.
It looks like this functionality should be extended to support composite fields in this context as well.
Needs work
1.0
Code
Please find the patch attached. This change will correctly handle both nested (ie `person.gender`) and flat (ie `email`) field keys