Hi all
I am having trouble adding the recaptcha spam protection to my form...
It works perfectly on my UserDefinedForm but it is not showing up in any php forms that I create
The code is as follow
//PHP form spam protection added
$form = new Form($this->owner, 'EnquiryForm', $fields, $actions, $validator);
$form->enableSpamProtection();
How i added the Recaptcha in mysite/_Config/config.yml
FormSpamProtectionExtension:
default_spam_protector: RecaptchaProtector
RecaptchaField:
public_api_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
private_api_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
The strange thing is if I use Math Spam protection it shows up but this does not
Can anyone help me with this problem?