Problem/Motivation

So I installed CAPTCHA with composer, set "Add CAPTCHA challenges on all forms", navigated to my form at /contact/join (the one I created from my /admin/structure/contact page), but there's no captcha there.

Okay, so I see there's something called Captcha Points that I need to configure. I go to add a CAPTCHA point but i'm not sure what a "Form ID" refers to or where to find that. Quite a few search results later I've got some varying answers to this so I try every single one of them.

I've got multiple targets now for my captcha points to cover all my bases: contact_join_form, contact_message_feedback_form, contact_message_join_form, and contact_message_personal_form

I clear the cache (both the captcha one and the site one in performance) but I still don't see the captcha. It doesn't appear in the Manage Fields, nor is there an option for it to add a field. I don't see it in display either.

Am I missing some key steps to set-up? Is there a document that outlines how to use this module? I'm looking at the home page for the module and not seeing any sort of walk-through for how to setup, so I'm assuming it's assumed to be straightforward, but there's a lack of information here to get started.

Any advice is greatly appreciated. Thanks

Steps to reproduce

Create a new contact form through the "Structure" section of Drupal 10

Install the module and try to use it for the first time.

Proposed resolution

Add better documentation and explanation of what a 'formID' is, where to find it, how to configure and set-up captcha on form structures...etc

Issue fork captcha-3419862

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajdip_755’s picture

Hi @ryanbuckley@gmail.com, You can check this thread, I have tried this one and working fine for me. https://www.drupal.org/project/captcha/issues/2736881#comment-13594561

ryanbuckley@gmail.com’s picture

Okay after following those very clear steps provided by someone to help overcome the extremely opaque set-up steps that were missing, I got it to work, but only after also realizing that the captcha does not show for my logged in admin user, even if I choose the "always show" option.

Any suggestions for how to prevent that setting from occurring?

nofue’s picture

Have a look to permissions. The Admin role has "Administer CAPTCHA settings" and "Skip CAPTCHA" set, and you cannot revoke these permissions. So I suppose there is no way to change this behavior, although I wonder why you want to be confronted with a CAPTCHA as an Admin who ist setting the rules? If it is for testing purposes: generate a second user with non-Admin permissions.

This of course will always be the save way to deal with permissions: create at least two accounts and do the admin tasks as admin (with a very cryptic and hard to guess user name) and the editing tasks as f.e. editor. Helps a lot to keep people from guessing your admin password, when they can see the display name on every article you put online …

japerry made their first commit to this issue’s fork.

  • japerry committed 27f3011e on 2.x
    docs: #3419862 Explain form IDs and the Skip CAPTCHA permission
    
japerry’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.