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 enabled captcha for the comment form (Add captcha point with id 'comment_node_article_form') but it is not showing. Anyone else have this issue? It does work for registration and contact form. Thank you.
Comment | File | Size | Author |
---|---|---|---|
#13 | Capture d’écran 2020-01-22 à 10.06.28.png | 157.35 KB | hillel33 |
Comments
Comment #2
tamarpe CreditAttribution: tamarpe commentedHello, It seems to work here, Is it still happening?
Are you sure the form id of your form is comment_node_article_form ? the default name is comment_comment_form.
I put it on Fixed, it seems like mistake of the ID.
Comment #3
naveenvalechaComment #4
fomenkoandrey CreditAttribution: fomenkoandrey commentedU was right.
I did "comment_comment_form" and captca appeared.
Thank U very much!!!
Comment #5
meaton CreditAttribution: meaton commentedExcellent! Thank you very much. I was using the form id comment_form looking at the source of the page. I added comment_comment_form and it appeared right away. I appreciate it.
Comment #6
mmerrill219 CreditAttribution: mmerrill219 commentedConfirmed.
To add Captcha to Drupal 8 Comments one must:
- Goto "admin/config/people/captcha/captcha-points"
- Click " + Add Captcha Point" button at top of page
- Use "comment_comment_form" as Form ID
Comment #7
rcodina CreditAttribution: rcodina commentedThanks for the info! If the comment type is custom, you can check the form ID looking for hidden input with name "form_id". The value of that input is the "Form ID" to add in admin/config/people/captcha/captcha-points
Comment #8
reyna_cortez CreditAttribution: reyna_cortez commentedhello, as I can do to add the CAPTCHA to a custom form?
Comment #9
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedComment #11
Boymix81 CreditAttribution: Boymix81 as a volunteer commentedGreat #7 !
It's working with also custom comment form.
Comment #12
perfky§ CreditAttribution: perfky§ commentedWhat is the logic behind it being comment_comment_form? I am confused
Comment #13
hillel33 CreditAttribution: hillel33 commentedcomment_comment_form is the id name for comments form.
You can find the form's name and id with the google developer tools.
Take a look at the following picture! ;-)
Comment #14
4kant CreditAttribution: 4kant commentedAs #11 stated:
If you have a custom form ( = new comment type ) #7 is working.
Thanks!