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.
This looks like a very promising solution to a long-standing problem, thank you!
I would be grateful if you could clarify a couple of points in the documentation please.
- It appears that this module uses the Contact module form to send emails. Is this correct
- If so, does this mean it should be compatible with modules such as Mollom which protect contact forms from spam?
- If so, why does it require the encrypt module (an inconvenient requirement if the site doesn't need it otherwise)? Is it doing something with data which email field and contact module aren't doing?
Thank you
Comments
Comment #1
PolHi there,
Thanks for your message, it's cool, I didn't know that this module could be useful !
views_contact_form.form.inc
You can override the form using
hook_form_alter()
if you want to as well.Another though I have in mind: I think the idea behind this module could be extended to any form provided by Drupal, but I lack time to work on this now unfortunately.
Comment #2
PolEdit: I just tested with Captcha and Recaptcha module and it works perfectly ;-)
Comment #4
laskiyt CreditAttribution: laskiyt commentedIntegration with the Captcha module is not working for me.
Views Contact Form is working perfectly (thank you!) but when I add a Captcha to the form it 1) displays below the "submit" button and 2) does not prevent the form from submitting if no answer or an incorrect answer is entered. I believe #1 is a Captcha issue and I've fixed it through doing a hook_form_alter and changing the Captcha's weight, but I mention it here in case it's related.
I believe issue #2 is a Views Contact Form issue because the Captcha works as intended on the other form I have on the site (a Webform).
Any ideas? What information can I provide here to make this easier to debug? Thanks!
Comment #5
laskiyt CreditAttribution: laskiyt commentedSetting the status to active and the category to bug report.
Comment #6
PolOk I will look at it.
Could you tell me which captcha module you're using ?
Thanks !
Comment #7
PolComment #8
PolI got it working again, the form id to use is:
views_contact_form_contact_form
.Reopen if you do not get it working.
Comment #9
laskiyt CreditAttribution: laskiyt commentedSorry to not have been more specific.
I'm using this Captcha module: https://drupal.org/project/captcha
I've got the Captcha showing up in the form (the form id for me is "views_form_member_contact_form_page", I guess it depends on what I named my contact form view). But the form will submit without checking the Captcha.
(If anyone is reading this later and is wondering how to know your form id, inspect the page where you have your form being displayed and it's the id on the html form element, except with underscores instead of dashes.)
Does leaving the Captcha blank prevent the form from submitting for you?
Thank you for your help and prompt responses.
Comment #10
laskiyt CreditAttribution: laskiyt commentedComment #11
PolHello laskiyt,
I tried:
And the captcha is still working as it should, I'm not able to reproduce the problem.