a-man a-man - 4 years ago 202
ASP.NET (C#) Question

Get grecaptcha in knockout viewmodel asp.net mvc umbraco

I am trying to use google's recaptcha in my web site(Umbraco). The problem I am facing is that I can not use

in my viewmodel.

So far, I have included into my

<script src='https://www.google.com/recaptcha/api.js'></script>

But when I try to access
in view model I get

cannot resolve symbol grecaptcha

So I can't do any of actions related to captcha.

Answer Source

I ended up with grecapctha.reset() on view, not viemodel

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download