I'd like to add a captcha to a webform. It looks really bad UX how this works today with form_id's.

Please provide a captcha as component for webform module. I think it's popular enough to integrate here properly.

Comments

elachlan’s picture

Status:Active» Closed (won't fix)

You can add it quite easily as is. If you can provide a patch it will be more likely that it will be included.

hass’s picture

Status:Closed (won't fix)» Active

No. Cannot move captcha in the fields list. Currently it's always on the bottom. Webform is popular. This requires a good integration and not a won't fix.

elachlan’s picture

Priority:Major» Normal
Status:Active» Postponed (maintainer needs more info)

Fair enough, it is not of a major priority though.

The normal behavior by design is to add the CAPTCHA just above the submit button on each form. Furthermore, with administration links enabled, you can add a CAPTCHA to a form without having to know the form_id.

What alternative do you propose? Please be as verbose as you can.

soxofaan’s picture

Note that the CAPTCHA module is (designed to be) more flexible than the standard admin UI.

see #743056: Document how to add a CAPTCHA programmatically

In the CAPTCHA branch 6.x-2.x, the CAPTCHA stuff was refactored to a real drupal form element, which makes things much cleaner, more in line with drupal standards and makes it easier for other modules to integrate with the CAPTCHA module.
...
Adding a CAPTCHA element to a form is as easy as adding a text field or option list (maybe even easier):
...