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.
Users can submit the Webforms without entering a value for the email address when the component setting is set to required.
Webform Mailchimp component set to 'required':
No red dot on the input field, and all values are allowed to be submitted:
Comment | File | Size | Author |
---|---|---|---|
#5 | webform_mailchimp-required-email-address-2124009-5.patch | 899 bytes | jonathanwestman |
Schermafbeelding 2013-10-30 om 15.45.15.png | 32.57 KB | silkogelman | |
Schermafbeelding 2013-10-30 om 15.42.56.png | 25 KB | silkogelman |
Comments
Comment #1
JordanMagnuson CreditAttribution: JordanMagnuson commentedConfirmed for me as well.
Comment #2
JordanMagnuson CreditAttribution: JordanMagnuson commentedRequires simple change in the _webform_render_mailchimp() function in webform_mailchimp.inc:
This line:
'#required' => $component['mandatory']
Needs to be changed to:
'#required' => $component['required'],
Comment #3
JordanMagnuson CreditAttribution: JordanMagnuson commentedComment #4
nidble CreditAttribution: nidble commentedFollowing other components conventions, I think is better to remove the 16th row from webform_mailchimp.module, just inside hook_webform_component_info() implementation:
This fix is required for both versions 6/7 of the module.
Comment #5
jonathanwestman CreditAttribution: jonathanwestman at ActiveLAMP commentedCreated a patch using the code from above
Comment #6
kopeboy CreditAttribution: kopeboy commentedThat fixes it, thanks.
Comment #8
blackdog CreditAttribution: blackdog as a volunteer commentedcomitted, thanks! Is this needed for 7.x-4.x too?