question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Executing Invisible reCAPTCHA, value is a null string

See original GitHub issue

When using an invisible captcha, I’m doing this.captcha.execute() on submit. My onChange handler isn’t called and in the onSubmit, when I do this.captcha.getValue(), the value is a null string. What could cause this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
yanivefraimcommented, Mar 21, 2017

@Sawtaytoes - this is how I do it, and it works for me:

<ReCAPTCHA
    ref={el => this.captcha = el}
    size="invisible"
    sitekey={getSiteKey()}
    onChange={token => this.submitForm(token)}
    />

<Button onClick={() => this.captcha.execute()}>
      Submit
</Button>
0reactions
leopuccicommented, Aug 23, 2021

@dozoisch ok I am learning how to play with that. THanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invisible reCAPTCHA - Google Developers
This page explains how to enable and customize the invisible reCAPTCHA on your webpage. To invoke the invisible reCAPTCHA, you can either:.
Read more >
Invisible reCAPTCHA sending empty g-recaptcha-response ...
You will need to manually call grecaptcha.execute() to run recaptcha if you are rendering invisible recaptcha in a div element.
Read more >
Re: Invisible recaptcha vs visible recaptcha - Marketing Nation
When implement an invisible recaptcha following the method described by Sanford Whiteman​ here, the var recaptchaResponse = grecaptcha.
Read more >
Using Google Invisible reCAPTCHA in the ASP.NET Login Page
This article provides an example of implementing invisible reCAPTCHA on an ASP.NET Login page. There are three possible types of invoking invisible ......
Read more >
Blog Post: Implementing reCAPTCHA in Experience Cloud
Server Side Validation; reCAPTCHA v2 Checkbox; reCAPTCHA v2 Invisible; reCAPTCHA v3. What about LWC support? Summary; Additional Resources ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found