Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to get rid of the the "Invalid domain for site key" message in reCAPTCHA 2 from a form. I've tried the following:
<setting key="RecaptchaPublicKey" value="myKey"
add key="RecaptchaSiteKey" value="myKey"
I know the key is correct because if I add the recaptcha field to the page like this it works fine: <div class="g-recaptcha" data-sitekey="myKey"></div> but it is not a viable solution as it lands outside the form and is not checked before submitting.
<div class="g-recaptcha" data-sitekey="myKey"></div>
The recaptcha field I'm using was added using the form builder in the backoffice.
Any ideas on how to solve this?
You need to put your reCaptcha 2 keys in the UmbracoForms.config file in the app plugins folder. Full path is ~/App_Plugins/UmbracoForms/UmbracoForms.config
<setting key="RecaptchaPublicKey" value="XXXXXX" />
<setting key="RecaptchaPrivateKey" value="XXXXXX" />
This solved my problem.
This has NOT solved my problem. I'm using the trial version of forms in V8. I have my keys in the UmbracoForms.config. Any ideas?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted