Invisible reCAPTCHA and ASP.net postback

300 views
Skip to first unread message

Mihai Dobrescu

unread,
May 3, 2017, 4:27:15 PM5/3/17
to reCAPTCHA
Hello,

I use a closed source CRM that generates forms having:
  • submit button as input of type submit
  • server validation

I have successfully implemented reCAPTCHA v2 but I need to implement Invisible reCAPTCHA now.


The issue I face is after ASP.net postback.

For this part I can't control any of the ASP.net code that generates the forms.

I can create only an ASP.net control to be inserted there and to perform the reCAPTCHA verification.

The generated form provides me some access to some objects, like the submit button, and the form contains an UpdatePanel making a partial postback at each submit, in order to provide the server validation errors if any.


In case of validation error, after the partial postback, the form reloads the controls state and after this reload, no more reCAPTCHA is present.

Also, if I forcibly reload the reCAPTCHA control, in a div (because I can't generate a button element, but an input of type submit), the reCAPTCHA callback is never called after the first postback.


How could I reset/reload the reCAPTCHA object in this case?


I have seen some similar issue here, after the first postback it does not submit anymore: https://jsfiddle.net/jayh99/dp1cLh28/


Thank you.


Reply all
Reply to author
Forward
0 new messages