Problem/Motivation

According to the FAQ, it's allowed to hide the reCAPTCHA badge as long as you include the reCAPTCHA branding yourself.
However, the module doesn't support this.

It is not too difficult to alter a form so that this is achieved. Basically, you only need to add a bit of CSS and a text to the form.

However, it would be nice if the module would provide an option for this so that no custom code is required.

Proposed resolution

On an abstract level, I would implement it as follows:

  1. Add a checkbox to toggle the visibility of the badge.
  2. Also add a (formatted) text field where you can specify the branding text. This should have the default value shown in the FAQ.
  3. This text should be appended to the end of the protected form and the badge should be hidden. (If configured to hide the badge)

Remaining tasks

Actually implement this feature and potentially discuss the details of how it should be implemented.

User interface changes

The configuration form would need to be adjusted. Also, the captcha output on the protected forms could change for the end-user.

CommentFileSizeAuthor
#4 3370065-4.patch3.69 KBgrcwolf
#2 3370065-2.patch3.47 KBgrcwolf
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

GRcwolf created an issue. See original summary.

grcwolf’s picture

StatusFileSize
new3.47 KB

I've created a simple patch for the 2.0.0 branch that would achieve this.
It seems to works but more extensive testing would be required. The labels/descriptions could probably also be better.

I decided against making the branding text configurable as Google seems to want/require this specific text.

This isn't a polished implementation of this feature but I hope it provides a good base to work from.

grcwolf’s picture

Status: Active » Needs work
grcwolf’s picture

StatusFileSize
new3.69 KB

I noticed that I forgot to add my css file to the patch.
That's the only difference in this patch

i-trokhanenko’s picture

Status: Needs work » Needs review

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

dench0’s picture

Status: Needs review » Reviewed & tested by the community

  • dench0 committed da2bd0db on 2.0.x
    Issue #3370065 by GRcwolf: Option to hide the reCAPTCHA badge
    
dench0’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.