Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.1
Component:
User interface
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 14:09 UTC
Updated:
5 Jun 2012 at 10:51 UTC
Hi All,
I am working for a custom Drupal module with a form.
I placed CAPTCHA for that form.
CAPTCHA is working fine with validation. But it is showing after the submit button.
I need the CAPTCHA before Submit button.
Is there any way to solve this issue?
Thanks
Monalisa
Comments
Comment #1
soxofaan commentedFYI: you'll find the CAPTCHA placement logic in captcha.inc (_captcha_get_captcha_placement, _captcha_search_buttons):
As you can see, the CAPTCHA module looks for submit buttons in a form and tries to place it before the first button.
What is the "key" of the submit button in your $form array?
Comment #2
monalisab commentedThanks for your reply.
My issue has been solved.