Id like to add CAPTCHA to my webform, but at 'Set CAPTCHA point' i cannot figure out what my Form ID is?

Is there any way to easily find this?

Comments

roborn’s picture

See the source in your browser, check the form id and replace the hifens with underscores.
Example: for webform-client-form-5 the id to point the captcha is webform_client_form_5

Roberto Ornelas | frontkom | Twitter: @roborn

ss84’s picture

works perfectly. Extremely greatful for the reply, thankyou :)

Anonymous’s picture

Thank you for this nice tip. You make may day! :-)

onewomanbiz’s picture

I see I'm not the only one at a loss to guess the form id for webform so I can add captcha and botcha.
I tried looking at page code and found "webform-client-form-5" but putting "webform_client_form_5" as form id for captcha didn't work for me.

I then checked the add captcha links to admin pages on the captcha settings page. Then, the add captcha to webform option appeared and it was already autocompleted with "webform_node_form". This string worked and capcha now appears at the end of the webform.

Thank you all for the tips!

the_pony’s picture

I'm admitting this was my problem too, and although the "contact_mail_page" ID (the ID of the site-wide contact form page) is already rendered in the CAPTCHA admin page, I didn't able to see this CAPTCHA in my contact form.

BUT, After i saw this option - "add captcha links to admin pages" I realized what was the "problem"..
This option (unchecked by default) means that the CAPTCHA field will also be shown to administrators. And in your case, because it was off, and it was when you were logged in as admin, you didnt saw the CAPTCHA field. But if you were logged out and try visiting your contact form again I suppose you should have see it...

For my opinion, it's better to leave this option off, because if you logged in as admin, I guess you dont want the site ensure you're a humen although some people may found it flattering :)

rmmcclay’s picture

Thanks for that tip, roborn. Worked for me.

sarmiluv’s picture

What you said works with one page form. If I am using page breaks then it shows the captcha in the very first page and won't let me go to next page without entering the captcha. When I go to next page, it won't show the captcha. It is doing the opposite. I would like to see the captcha only on the last page. I checked the form id which is same for all pages. Is there a way to fix this?

adebayopeter’s picture

thanks you... it worked like magic

vako’s picture

Sorry to sound a beginner, but can someone please point out which file and where we can enter this form id and how?
a small example should be enough. thanks!

roborn’s picture

Install CAPTCHA module, go to "CAPTCHA point administration" (yoursite.com/admin/user/captcha/captcha/captcha_point) and enter the form id.

Roberto Ornelas | frontkom | Twitter: @roborn

vako’s picture

Thank you very much, it worked! I had to enable the CAPTCHA option in the form properties as well.

martin naughton’s picture

i just went to my webform page. Right clicked and view souced. See all the code for that page. Found this line eventually

to the webform-client-form-35 and converted it to webform_client_form_35 and added it the row with all the other defaults like comment_form,contact_mail_page, contact_mail_user etc.

added and it worked.

just thought i would explain it more

ddubbua’s picture

I found it's easiest to add forms to the list by going here: /admin/user/captcha and then turning on the "Add CAPTCHA administration links to forms" option. When I get them added I turn the option off again.

petarb’s picture

ddubbua has the right idea above. This is the easiest way to go about doing it!

Reid’s picture

If you don't turn it back off, you'll get strange looking admin options on small forms like your Search box.

Thanks for the tip!

adebayopeter’s picture

thanks for the answer....you rock...