Jul 15th, 2014, 5:30 PM
(This post was last modified: Jul 15th, 2014, 5:33 PM by southshoremedia.)
Hello, I found this thread - http://forums.formtools.org/showthread.php?tid=437 - which shows how to display custom content depending on the presence of the recaptcha error variable. is that strictly just for the api? i'm using the process method, and that code won't display anywhere. as i'm using bootstrap on a site, i want to show a glyph and red box but only if there is an error.
this code worked fine on another site, but its using the api:
using the code from the page i linked to displays nothing. another thing worth noting, and this was more me not thinking ahead, but for what i'd doing, the contact form displays in a bootstrap modal box. when the page is reloaded on error, the user wouldn't see the notification without opening the modal, that's why i have to move it.
this code worked fine on another site, but its using the api:
PHP Code:
<?php if (!empty($g_api_recaptcha_error)) { ?>
<p class="alert alert-danger"><span class="glyphicon glyphicon-warning-sign"></span> Error! Your submission did not match the captcha, please try again.</p>
<?php $g_api_recaptcha_error = ""; ?>
<?php } ?>
using the code from the page i linked to displays nothing. another thing worth noting, and this was more me not thinking ahead, but for what i'd doing, the contact form displays in a bootstrap modal box. when the page is reloaded on error, the user wouldn't see the notification without opening the modal, that's why i have to move it.