Menu icon Foundation

My Posts

No Content

My Comments

Ciro Corvino commented on Heinz Tödter's post over 1 year

This works for me:
 
Foundation.Abide.defaults.validators.requiredCaptcha = function ($el) {

if (grecaptcha.getResponse().length != 0) {
    return true;
}

return false;

};
 
<div class="g-recaptcha" data-sitekey="my-key"></div>
<input type="text" class="input-group-field invisible" data-validator="requiredCaptcha" />
<span class="form-error">error msg</span>

Posts Followed


Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Heinz Tödter's post over 1 year

This works for me:
 
Foundation.Abide.defaults.validators.requiredCaptcha = function ($el) {

if (grecaptcha.getResponse().length != 0) {
    return true;
}

return false;

};
 
<div class="g-recaptcha" data-sitekey="my-key"></div>
<input type="text" class="input-group-field invisible" data-validator="requiredCaptcha" />
<span class="form-error">error msg</span>

Posts Followed

Following

  • No Content

Followers

  • No Content