Form Help

TOPIC:

Recaptcha in Classic Form? 9 years 6 months ago #47897

  • Topic Author
  • Ingrid
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 30
  • Thanks: 0
Since yesterday I got a lot of spam through the formular with the normal captcha. Now I want to include the recaptcha. Can anyone give me a solution?

Many thanks

Ingrid

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 1 month ago #66222

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0
Hi,

I also have the same question. I did a few forms with QuickMode and included ReCaptcha, but I have one form that is a bit more complicated and I want to have control of size and location of specific input fields and labels. So I decided to use ClassicMode, but I don't see ReCaptcha an option.

Is this not possible?

Please Log in or Create an account to join the conversation.

Last edit: Post by jpresult.

Re: Recaptcha in Classic Form? 9 years 1 month ago #66314

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
Hi,

the ClassicMode is a lot more techy than the QuickMode, do you have some PHP/JS experience?

Regards,
Markus

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 1 month ago #66315

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0
Yes I do

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 1 month ago #66343

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
ok, then first I would bring in the recaptcha API. These steps should be taken for this:

- go to form settings => pieces => before form => check "custom" and print/echo the script tag to include the recaptcha api js (<?php and ?> not required).

- Add a static text/html element that contains the HTML to display the recaptcha

- In form settings => submit pieces => before submit => check "custom" and in the codebox add the PHP to test against the captcha try, if it fails, render a script tag with an echo that does location.go(-1) followed by an immediate exit;

Let me know how far you get with this, as I might be able to assist.

Regards,
Markus

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 1 month ago #66356

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0
Ok, I wen't to the recaptcha api documentation and I added the following. I checked with what BF QuickMode is doing, and the api js files are different.

But in any case, I used the one from the api documentation and I have the following:
echo '<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>';

echo '<script type="text/javascript">
           Recaptcha.create("6LeGAMwSAAAAAFdTnJ821YjJMJGTBg3V68TYjpgu", "recaptcha_div", {
             theme: "clean",
             callback: Recaptcha.focus_response_field});
      </script>';

I also created the Static Text field with the following markup:
<div id="recaptcha_div"></div>

But it's not beign displayed and I get the following error:
Recaptcha.widget is null

Is my api call ok?

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.041 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!