The problem is that the captcha is displayed but is flawed (sends comments without confirming it) the page with the form _https://lik-astana.kz/posmotret-vse-otzyvy.html
Captcha spelled /components/com_testimonies/models/forms/item.xml
<field
name="captcha"
type="captcha"
label="COM_TESTIMONIES_FIELD_CAPTCHA_LABEL"
description="COM_TESTIMONIES_FIELD_CAPTCHA_DESC"
validate="captcha"
/>
I bring in /templates/lik-astana/html/com_testimonies/list/default_form.php
Connection
<?php
defined('_JEXEC') or die;
$params = JComponentHelper::getParams('com_testimonies');
if($params->get('captcha')!= '' || $params->get('captcha')!= 0) {
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onInit','dynamic_recaptcha_1');
}
?>
In the form template, captcha itself is displayed
<?php if($params->get('captcha')!= '' || $params->get('captcha')!= 0): ?>
<div class="control-group form-group">
<div class="control-label col-sm-4">
<?php echo $this->form->getLabel('captcha'); ?>
</div>
<div class="controls col-sm-8">
<div id="dynamic_recaptcha_1">
<?php echo $this->form->getInput('captcha'); ?>
</div>
</div>
</div>
tell me what's wrong.
Added a field as required required="true"
<field
name="captcha"
type="captcha"
required="true"
label="COM_TESTIMONIES_FIELD_CAPTCHA_LABEL"
description="COM_TESTIMONIES_FIELD_CAPTCHA_DESC"
validate="captcha"
/>
but the message is all sent smoothly without confirmation.