Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a webform containing nested elements, i.e.: container element > email field.
When the email field is nested, it is not selectable when adding a new mailchimp handler.
Work-around is possible:
- Move the email field to the root of the webform makes it selectable
- Select the email field and save the settings for mailchimp
- Move the field back to the nested position again
Comment | File | Size | Author |
---|---|---|---|
#4 | 1001256-webform-mailchimp-nested-email-4.patch | 1.32 KB | autopoietic |
Comments
Comment #2
tijsdeboeckIndeed, noticed the same issue just now, and did ty the same work-around, which works.
Comment #3
maio1980 CreditAttribution: maio1980 commentedAnd use
$fields = $this->getWebform()->getElementsInitializedAndFlattened();
instead of
$fields = $this->getWebform()->getElementsDecoded();
on line 111 in WebformMailChimpHandler.php ?
Comment #4
autopoietic CreditAttribution: autopoietic at Torchbox commented#3 works for me, thanks maio1980. Here is a patch against 8.x-5.x-dev. Fixes an unrelated typo also.
Comment #5
autopoietic CreditAttribution: autopoietic at Torchbox commentedComment #6
mbovan CreditAttribution: mbovan at MD Systems GmbH commented#4 works for me as well.
Comment #7
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedClosing in favor of the same (older) issue :) #2847658: Use getElementsInitializedAndFlattened in place of getElementsDecoded