Google recaptcha v2 giving "invalid captcha value" error on form submit

Vote:
 

Hello,

I am using Episerver.Forms.Samples reCaptcha(Google Recaptcha). In the recaptcha block I have entered my sitekey and secretKey and the necessary script code on my html file.I am successfully able to display the Recaptcha.

But after verifying the Recaptcha when I submit the formI always get an error "Invalid captcha value."

Is I am missing something? 

Many thanks in advance.

#178191
May 04, 2017 13:50
Vote:
 

Check 1: What browser are you using, Id there any error in console? Try with different browser.

Check 2:

/K

#178203
May 04, 2017 15:20
Vote:
 

Hello,

@K Khan.

I am using chrome browser.

I have tried in different browsers also but still getting error "Invalid captcha value."

On my console I am getting an "epi is not defined" error for forms.

#178223
May 05, 2017 6:23
Vote:
 

@Aniket

I have already visited that link few days ago and also posted a comment there,which I am posting here again.

" I am not using @RenderSection anywhere in my project instead I have used @RenderBody() method in my layout file and have include RequiredClientresources in header and footer.

But still getting the epi is not defined error."

Are you saying that  "epi is not defined" error is the actual cause of error "Invalid captcha value." that I am getting on my console.

#178291
May 08, 2017 6:01