I'm not sure if this needs to be reported in both the Captcha and Arrange Fields modules, so I've done both.

I'm using Drupal 7.18, Captcha 7.x-1.0-beta2, Arrange Fields 7.x-1.9

The captcha is always in the wrong place (top of form, behind fields). See attached screenshot.

I've tried clearing the Captcha placement and Drupal caches to no avail. I've tried allowing a non-admin user with 'Arrange Fields' permissions to place the Captcha field in a Webform, but it just shows up as some text in the Arrange Fields WYSIWYG editor.

-

Files: 
CommentFileSizeAuthor
CaptchaDisplayBug-2013-02-05_15-34-19.png17.93 KBlynnewu

Comments

richardp’s picture

That's probably a bug report for me. In Arrange Fields, I have to hand-code support for Captcha, because its form structure is unusual. I guess they must have changed the structure since the last time I checked, and need to go in and fix it again.

Richard

lynnewu’s picture

Thanks. Is there anything I can do to help/assist?

richardp’s picture

Okay, so I figured out what it was.

Indeed, it is a change which needs to take place in the CAPTCHA module. I have filed an issue with them, and requested they add the fix to their next version:
#1909734: CAPTCHA module overrides element pre_render, breaks other modules

In the meantime, you only need to add/change 2 lines of code to fix this problem, to the file captcha.module. Please see that issue I linked to, I explain what 2 lines of code.

Richard

lynnewu’s picture

Woohoo! Thank you very much!

richardp’s picture

Status:Active» Fixed

Glad it seems to be working. Changing status to "fixed"

Status:Fixed» Closed (fixed)

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