Needs work
Project:
CAPTCHA
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 May 2010 at 14:09 UTC
Updated:
8 Sep 2023 at 12:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
soxofaan commentedNo, this isn't a duplicate, nor it is currently possible.
So this makes it a feature request.
Comment #2
RedTop commentedFunny how sometimes people seem to try and do exactly the same thing at exactly the same time... I couldn't figure this out as well and now I know why. I'd love this feature!
Comment #3
mugstar2 commentedMe too: feature request please!
Comment #4
david.a.king commentedargh, yes! need this one please. using recaptcha, it appears on the front page rather than the last.
are there any workarounds or non-captcha solutions to this?
thanks
Comment #5
TheDoctor commentedSubscribing.
Comment #6
jnettikI'm also looking for this feature
Comment #7
the_g_bomb commentedI'm using the re-captcha and need this as well. I'll offer to help out if and when I can, but similar to yourself I am finding that spare time is in the minority at the moment. I'll see if I can persuade a client to sponsor development of this.
At the moment I have had to resort to manually adding the recaptcha to the forms.
http://www.google.com/recaptcha
I use this on all other forms on the site so its not an ideal solution.
Comment #8
tutnix commentedI adapted a solution i found for mollon.
Using reCaptcha and the captcha module resulted in having the captcha on every page of a multi page webform.
I use the following in a module to disable it on all but the last page.
Comment #9
sausted commentedIn which module did you put this code?
Comment #10
Anonymous (not verified) commentedThis isn't a workaround for Drupal. What should be the syntax in D7?
Comment #11
aouko commentedHere is the proper code for D7:
Comment #12
ravencoder commentedSomething to take note, when I tried #8 solution is that your custom module must be executed after the Captcha module.
In my part, I had to set the module weight of my custom module (in the system table) higher than that of the Captcha module (this is usually set to 0 by default).
Comment #13
linchis commentedHere is an easy solution for Drupal 7 and Captcha version [captcha-7.x-1.0-beta2.zip]:
You need to modify two functions in captcha módule file: captcha.module
The first function is:
/**
* Process callback for CAPTCHA form element.
*/
function captcha_element_process($element, &$form_state, $complete_form) {
return $element;
}
The second function is:
/**
* CAPTCHA validation handler.
*
* This function is placed in the main captcha.module file to make sure that
* it is available (even for cached forms, which don't fire
* captcha_form_alter(), and subsequently don't include additional include
* files).
*/
function captcha_validate($element, &$form_state) {
}
I hope this solution help you :)
Comment #14
hockey2112 commented@linchis, thanks for this fix! It works great on my D7 website.
If anyone is wondering, the approximate line numbers are:
First function: 181
First function's trailing '}': 300
Second function: 554
Second function's trailing '}': 636
Comment #15
elachlan commentedIf you can put together a patch, it would likely see an inclusion.
Comment #16
katannshaw commented#13 works great for what I was needing. Thanks linchis.
Update:
One thing I noticed is this error appeared once I added this code:
Notice: Undefined index: webform in captcha_element_process() (line 181 of \mysite\drupal\sites\all\modules\captcha\captcha.module).I'm new to PHP, so could you let me know how to define the index with the code from #13 so that the error goes away?
Also, is there a way to also apply this to entity forms? I tried this out, but received the same undefined index error for "entityform".
I'm using this quick fix in the meantime: http://www.citytree.be/blog/undefined-index-quick-fix-in-drupal7-error-r...
Comment #17
theemstra commentedIs that patch out? Couldn't find it anywhere.
Does the maintainer feel like including it?
Comment #18
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page.
Comment #20
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Fixed patch.
Comment #22
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Trying fixed patch.
Comment #23
chernous_dn commentedComment #25
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Trying fixed patch.
Comment #26
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Trying fixed patch.
Comment #28
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Trying fixed patch.
Comment #30
chernous_dn commentedOn the basis of #13 comment. I create patch for show captcha on last page. Update last patch #28.
Comment #32
chernous_dn commentedComment #33
chernous_dn commentedAdd setting display captcha on last page in setting captcha. Moved functionality to hook_form_alter.
Comment #35
nicole.harnish commentedSolution #11 worked for me, with a custom ID checker for my client :)
Comment #36
veronicaseveryn commentedSolution #33 worked for me.
But I would suggest to add this option also when a Webform module exists - it also provides multi-step forms now.
Comment #37
elachlan commentedComment #39
veronicaseveryn commentedFound an issue, here's an updated patch
Comment #41
veronicaseveryn commentedRe-rolled the patch
Comment #43
veronicaseveryn commentedWas wrong file
Comment #44
wundo commentedhi @veronicaSeveryn, thanks for the patch!
What are the steps to reproduce this?
Comment #45
wundo commentedComment #46
sachint1996 commentedComment #47
sachint1996 commentedRemoved the incorrect file and attached the correct file. Please note that the patch added in #42 is not compatible with 7.x-1.7
Comment #48
sachint1996 commentedKindly ignore this comment.
Comment #49
rafaellapinho commentedAdded patch to the #13 as it worked for me.