<div class="g-recaptcha" data-callback="verifyCaptcha" data-sitekey="####" data-type="audio">;</div> and registering the Captcha API using <script src="https://www.google.com/recaptcha/api.js" async="async" defer="defer"></script> in the header section. I am not using Kentico out-of-box reCapcga control. But while I am submitting the form, not sure why it is hitting the GetCaptachaValue() method inside TextCaptcha.ascx.cs file. And since there is no null check of textBoxList it is throwing error. Could anyone please let me know why it is hitting that function?
<div class="g-recaptcha" data-callback="verifyCaptcha" data-sitekey="####" data-type="audio">;</div>
<script src="https://www.google.com/recaptcha/api.js" async="async" defer="defer"></script>
Thanks, Joy
Hi, Sorry for late posting..I found the issue.. There was a field with control type Security was in the page and that's the reason it was hitting that page.
Thanks.
Joyanta,
Is it possible that a Kentico Captcha control is located elsewhere on this page? Have you tried testing the form on another page, e.g. a blank page that doesn't nest within the master page?
Please, sign in to be able to submit a new answer.