Is it possible to include invisble reCaptcha in quickcontact form?
Live url
10 replies · opened Sep 29, 2017
Is it possible to include invisble reCaptcha in quickcontact form?
Live url
Hello,
It is absolutely possible to include Invisible reCaptcha inside the Quick Contact Form. You only need to change the HTML Codes, while the include/sendemail.php Codes should remain the same. Following the Official Documentation should work fine.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
I used this code for my send button:
<button type="submit" id="quick-contact-form-submit" name="quick-contact-form-submit" class="button button-rounded btn-block center nomargin g-recaptcha" data-callback="recaptcha_callback" data-sitekey="6LfGkDIUAAAAAPcR5bXvJLv6PxXgcFvRDjlyicH8" value="submit"><span>Pošalji</span></button>
and this for callback, as I find this solution in forum:
<script type="text/javascript">
function recaptcha_callback(){
alert("callback working");
$('.quick-contact-form-submit').prop("disabled", false);
}
</script> sendmail.php form is set up correctly, I am using it for other forms, using recaptcha v2, but can't set up invisible recaptcha?
I updated code now, sending is now working, but get result from php, in new window, not in same window...
<button type="submit" id="quick-contact-form-submit" name="quick-contact-form-submit" class="button button-rounded btn-block center nomargin g-recaptcha" data-callback="recaptcha_callback" data-sitekey="6LfGkDIUAAAAAPcR5bXvJLv6PxXgcFvRDjlyicH8" data-badge="inline" value="submit"><span>Pošalji</span></button>
<script>
function recaptcha_callback() {
document.getElementById('quick-contact-form').submit();
}
</script>
It looks like that quickContact: function() from functions.js is not triggered?
Any help?
Hello,
Can you please let us know the ID of the Quick Contact Form on the Page so that we can look further on this? Thanks for your Patience.
Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.
form id="quick-contact-form"
and wrapper is
div id="q-contact" class="widget quick-contact-widget
this is live url
https://www.allegrakrstarenja.com/last-minute2.html
https://www.allegrakrstarenja.com/last-minute4.html (implementation on div, rather than button, but same result)
Hello,
There appears to be some conflict. We are checking for possible solutions. Thanks for your Patience.
Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.
any luck?
<script>
function recaptcha_callback() {
document.getElementById(‘quick-contact-form’).submit();
}
</script>
maybe here to implement call to quick.contact.function?
Any updates?
Hello,
Can you please consider using the following code:
function recaptcha_callback() {
SEMICOLON.widget.quickContact();
}This should work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Unfortunately, this workaround doesn't work...
Quick contact form only works on this binding:
function recaptcha_callback() {
document.getElementById('quick-contact-form').submit();
SEMICOLON.widget.quickContact(); //adding this doesn't change anything
}
But if I remove document.getElementById('quick-contact-form').submit(); FORM DOESN'T WORKING
Thank you for all your trouble
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard