Hi -
I was wondering if anywhere in the code I can make the Recaptcha input field become focused when the submission results in an error. Currently the page refreshes and it displays the JTEXT error message at the top. But the user needs to scroll down to field. Is this change because there appears to be no client side validation on the Recaptcha?
On the older captcha in the last version I was able to use this code in the html/com_eventbooking/register/default.php over ride:
Code:
<?php
if ($this->captchaInvalid) {
?>
<span class="error"><?php echo JText::_('EB_INVALID_CAPTCHA_ENTERED'); ?></span>
<script>
jQuery( document ).ready(function() {
jQuery('input[name="security_code"]').focus();
});
</script>
<?php
}
?>
I would like to use something similar I just cant seem to find where I can detect an error anymore. any help would be great! Using the latest version of Event Booking 1.6.5 and Joomla 2.5.19
Thanks!