Menu icon Foundation

My Posts


My Comments

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

Hello,

yes, i found a way. After a lot of reading and searching i solved it this way:

[form method="post" action="mailer.php" name="Kontaktformular" data-abide onsubmit="return $(this) && captcha()"]

.........................................
[style]
input.test {
color: #ffffff;
font-size: 12px;
border: none;
height: 0px;
padding: 0px;

}
[/style]

[div class="row"]
[div class="large-6 medium-12 small-12 columns"]
[div class="g-recaptcha" data-sitekey="mykey"][/div]
[input type="text" class="test" name="testfeld" id="testfeld" required /]
[small class="error">Bitte bestäigen Sie die Checkbox[/small]
[/div]
......................
[script]
function captcha () {
var v = grecaptcha.getResponse();
if(v.length == 0)
{
document.getElementById('testfeld').value = "";
return false;
}
if(v.length != 0)
{
document.getElementById('testfeld').value = "1";
return true;
}
};
[/script]

This works for me :-)

Best regards

Heinz

p.s.: change the brackets :-)

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

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

Hello,

yes, i found a way. After a lot of reading and searching i solved it this way:

[form method="post" action="mailer.php" name="Kontaktformular" data-abide onsubmit="return $(this) && captcha()"]

.........................................
[style]
input.test {
color: #ffffff;
font-size: 12px;
border: none;
height: 0px;
padding: 0px;

}
[/style]

[div class="row"]
[div class="large-6 medium-12 small-12 columns"]
[div class="g-recaptcha" data-sitekey="mykey"][/div]
[input type="text" class="test" name="testfeld" id="testfeld" required /]
[small class="error">Bitte bestäigen Sie die Checkbox[/small]
[/div]
......................
[script]
function captcha () {
var v = grecaptcha.getResponse();
if(v.length == 0)
{
document.getElementById('testfeld').value = "";
return false;
}
if(v.length != 0)
{
document.getElementById('testfeld').value = "1";
return true;
}
};
[/script]

This works for me :-)

Best regards

Heinz

p.s.: change the brackets :-)

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content