Hi
I have problem in captcha while i use it in webform,
see my steps
i have 2 fileds in webform a) First name b) Email both are required
if i give catcha value right at first time and i dont fill above both fields then my form gives me error for the above required fields, and captch disappears bcoz i have added right value in captcha.. (if i pass wrong value then it comes again),
My problem is i want captcha in every attept of form,
While it is perfactly working on my default contact form,
In captcha settings i have also selected "Always add a challenge." in Persistence,
Please Guide me what i am missing!
Comments
Comment #1
soxofaan commentedThis is a feature actually: once a CAPTCHA is solved correctly for a form instance (aka form session), it is omitted for the rest of the lifetime of that form. This was implemented for workflows with previews or multi-page forms, where one typically wants that the CAPTCHA is removed once the user successfully answered to it.
The admin option "Always add a challenge." is maybe a bit misleading here, and should better be something like "Add a challenge to each form instance, until correctly solved for that instance."
Maybe this could be turned into a feature request to support a real "Always add a challenge" feature. However, I'm not sure if that's a very good idea: it will mainly hurt human visitors, but barely harm spambots, because they probably don't retry posting a form with a validation error and just rerequest a new fresh form instance.
Comment #2
Turkish Delight commentedBumping because I believe that this should be changed to constantly add a challenge for that form if the actual form hasn't been answered correctly. This could apply to a user-login form, a password request form or a contact form.
Comment #3
soxofaan commentedmarked duplicate: #817326: Captcha FORM disappears after correct answer
Comment #4
soxofaan commented(tagging)
Comment #5
soxofaan commentedhere is a first patch that implements this feature:
"always add a challenge" now really means what it suggests: a challenge will always be added, even on multipage/preview workflows.
Added the option "Add a challenge to every fresh form, but for multipage workflows only one challenge is required.", which is the old interpretation of "always add a challenge".
I'm not really happy with the wording yet. I'm afraid the four persistence options we have now take too much text and still are too hard too understand. I warmly welcome any suggestion or ideas from you guys and gals.
any other feedback is welcome too.
Comment #7
soxofaan commentedthis one should do it
Comment #8
soxofaan commentedVarious tweaks and fixes.
All tests pass on my setup, but letting testbot give it a try too
Comment #9
soxofaan commentedtest bot is happy, so committed: http://drupal.org/cvs?commit=378936
to be ported to D7 version
Comment #10
soxofaan commentedported and committed:
http://drupal.org/cvs?commit=470916
Comment #12
petiar commentedHi there,
need to open this as I am having trubles on guestbook page - with "Always add a challenge." The CAPTCHA keeps disappearing every day and my customer is getting tons of spam. Can you please help me with this? Wich cache turned off it disappeared after couple of hours, cache enabled keeps the CAPTCHA working at least one day. My customer thinks I am not even able to set up a stupid guestbook.
Thanks a lot.
Comment #13
soxofaan commentedplease don't reopen this old issue
see #1874038: drupal captcha always disappear, return when clear performance cache