Why is g-recaptcha-response blank...?

2,541 views
Skip to first unread message

Dawn Raison

unread,
Sep 2, 2015, 8:59:31 PM9/2/15
to reCAPTCHA
Hi folks,

Anyone ever had the situation where g-recaptcha-response is being correctly returned but is *always* blank - regardless of the current state of the validation.

I've checked the obvious:
- API is included
- Captcha is within in my form definition

Looking around with firebug - when I submit the form the field is sent but is always blank.
The field (a hidden text area) exists after the captcha has initialised, but for whatever reason does not ever get set...

Any suggestions or clues as to where to look next?

Silly thing keeps asking me to identify pizza and ice-cream - way to make a developer hungry!

Dawn

Dawn Raison

unread,
Sep 2, 2015, 9:16:12 PM9/2/15
to reCAPTCHA
OK, to shamelessly answer my own question...

It failed in my case because I had a division on the same page with the same *id* as the variable to be returned - g-recaptcha-response in this case.
A silly mistake created via the html generation framework I'm using.

However the act of posting here made the penny drop!
Thanks for listening - now where is all that pizza?

Dawn

Surya Deva

unread,
Mar 22, 2019, 5:08:51 PM3/22/19
to reCAPTCHA
Hi,
Thanks for your answer. I got idea for your answer.same issue for me. Lot of Thanks 
Reply all
Reply to author
Forward
0 new messages