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.

add getResponse method

See original GitHub issue

I am using this module with Nextjs (ssr) and it is the only one that works well. Thanks for that!

I’m combining it with Formik, and I’m needing the grecaptcha.getResponse() method, because the onVerify callback does not fit my need.

Is there any technical reason why it is not implemented?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
sarneehcommented, Mar 3, 2019

@tojacob I found even better option for your problem:

<Reaptcha
    onVerify={token => {
        setFieldValue('token', token);
        submitForm();
    }
/>
...
<button 
    type="submit" 
    onClick={() => {
        setSubmitting(true);
        captcha.execute();
    }}
>
Submit
</button>

In this scenario you don’t have to do the if statement in your handleSubmit. The handleSubmit will only run when the captcha verifies successfully.

3reactions
sarneehcommented, Mar 1, 2019

@tojacob Thanks for the solution!

After giving it a thought I guess it would be a good idea to add a getResponse method to expose the full Recaptcha API. So I’ll keep this issue to remember about it for later 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

HttpWebRequest.GetResponse Method (System.Net)
Returns a response from an Internet resource.
Read more >
GetResponse Tutorial for Beginners 2022 (+10% Lifetime ...
Start Here ▷ https://meticsmedia.com/ getresponse (10% Lifetime Discount)This GetResponse Tutorial for Beginners will teach you step-by-step ...
Read more >
GetResponse for WordPress
GetResponse for WordPress lets you add site visitors to your contact list, update contact information, and add your GetResponse landing pages to your ......
Read more >
How do I add the tracking JavaScript code to my website?
The GrTracking method is a way to properly identify your visitors who haven't come to your website via a GetResponse message link. It...
Read more >
How can I add individual contacts directly to my list? | Help
Adding contacts to a list · 1. Go to Contacts and click Add contacts. · 2. Choose a list from the dropdown menu....
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