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.
How would I use this module with my Webforms, to verify a visitor's email is valid?
I have a couple contact webforms (quick contact and full contact) on many of my sites. I'd *love* to not need to use a CAPTCHA. Both of these forms require an email address from the visitor. Is there a way to utilize your email address checking together with the Webform to prevent spammers using my Contact forms (or other Webforms)?
Comment | File | Size | Author |
---|---|---|---|
#13 | 898726_13.patch | 6.41 KB | NancyDru |
Comments
Comment #1
Peter MajmeskuHi,
it would be interessting for me as well, if we can use that module with webform in any easy way. Has anybody knowing how it would work?
-j
Comment #2
federico CreditAttribution: federico commentedA general approach should integrate this module with most popular modules that use email addresses, including:
- User module (ALREADY INTEGRATED)
- Contact (core module)
- Comment (see #458758: Verify email-adresses in guest comments
- Webform.module
- Email_field (CCK)
Comment #3
federico CreditAttribution: federico commentedComment #4
NancyDruLet's add Print_Mail from the Print module to handle "Email a friend."
I've already submitted a patch for comments in #458758: Verify email-adresses in guest comments; it would help if others would review it (and mark it RTBC).
Comment #5
NancyDruHmm, it appears any form can be integrated with something like:
$form['fld_form_addr']['#element_validate'][] = 'email_verify_edit_validate';
I can't test at the moment because PHP in Windoze doesn't like to send email.Comment #6
rmcom CreditAttribution: rmcom commentedespecially integration with the webform module would be greatly appreciated!
Comment #7
NancyDruThat would be an issue for the Webform module. Refer them to this issue.
Comment #8
rmcom CreditAttribution: rmcom commentedI did a while ago, but the answer given by the webform maintainer has a lot of merit:
http://drupal.org/node/498148#comment-5162952
It seems that the usability of email_verify would be greatly enhanced if the email verification would include
How could we go about this and how can I help (not being great at php, maybe testing)?
Or should this be a separate module? But then there would be an eternal compatibility issue?
I could try to propose a patch ...
Comment #9
rmcom CreditAttribution: rmcom commentedmaybe a patch along the lines of http://drupal.org/node/374809 and http://drupal.org/node/458758?
Comment #10
rmcom CreditAttribution: rmcom commentedRegarding integration with simplenews, the problem emanating from the simplenews module because it incorrectly interprets the result returned by email_verify_check.
I have posted a patch provided by Mr3T for simplenews here: http://drupal.org/node/1291774#comment-5957960
Comment #11
DrewMathers CreditAttribution: DrewMathers commentedWebform Validation provides validation services to the Webform module. Here is a patch for Webform Validation to integrate Email Verify #1131328-7: Email validation
The original poster's problem could also be solved by http://drupal.org/project/webform_confirm_email
Comment #12
manoloka CreditAttribution: manoloka commentedWhat about to make it compatible with cck email field?
Comment #13
NancyDruHere is a patch to implement a hook that other modules can use to indicate their forms to be checked.
It needs thorough testing, please.
Comment #14
oadaeh CreditAttribution: oadaeh at Hook 42 commentedThanks for the patch, @NancyDru!
However, it has been my experience that in the larger majority, getting other module maintainers to update their modules to account for this one is far less likely to happen than to provide a generic interface on this module to allow for checking any form/field combination, as challenging as that is: #2426859: Allow for more flexible form verification .
Comment #15
oadaeh CreditAttribution: oadaeh at Hook 42 commentedSince I have changed how this module chooses which form/field to test to allow admins to specify (and not) any form/field combination, I am closing this.