'

Демо интеграции в Модуль Контакты New v1.2.5

jQuery Validation Plugin   и   reCAPTCHA v3

Если не работает валидация (отправляется пустая форма без проверки и т.п.) убедитесь, что библиотека jQuery (jquery.min.js - по умолчанию подключается модулем) подключена на странице только один раз! и расположена в секции <head>

[tag:formtitle]

[tag:fld:email] [tag:fld:subject] [tag:fld:6] [tag:fld:7] [tag:fld:8] [tag:fld:9]
' ); $demo = array( 'alias' => 'jqval_cap', 'title' => 'Демо форма с jQuery Validation Plugin и reCAPTCHA v3', 'mail_set' => array( 'from_name' => '', 'from_email' => '', 'subject_tpl' => '[tag:fld:subject]', 'receivers' => array( array( 'email' => '', 'name' => '' ) ), 'format' => 'text', ), 'rubheader' => ' ', 'form_tpl' => $form_tpl[$_REQUEST['demo']], 'mail_tpl' => '[tag:easymail]', 'finish_tpl' => '
Форма успешно отправлена! Обновить страницу
', 'code_onsubmit' => '', 'code_onvalidate' => '', 'code_onsend' => '', 'fields' => array( 1 => array( 'new' => true, 'form_id' => $fid, 'title' => 'email', 'active' => 1, 'type' => 'input', 'main' => 1, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="fld[[tag:id]]" class="form-control" placeholder="[tag:title]"', 'tpl' => '
[tag:fld]
' ), 2 => array( 'new' => true, 'form_id' => $fid, 'title' => 'subject', 'active' => 1, 'type' => 'input', 'main' => 1, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="fld[[tag:id]]" class="form-control" placeholder="[tag:title]"', 'tpl' => '
[tag:fld]
' ), 3 => array( 'new' => true, 'form_id' => $fid, 'title' => 'receivers', 'active' => 0, 'type' => 'select', 'main' => 1, 'setting' => '', 'required' => 0, 'defaultval' => 0, 'attributes' => '', 'tpl' => '' ), 4 => array( 'new' => true, 'form_id' => $fid, 'title' => 'copy', 'active' => 0, 'type' => 'checkbox', 'main' => 1, 'setting' => '', 'required' => 0, 'defaultval' => 1, 'attributes' => '', 'tpl' => '' ), 5 => array( 'new' => true, 'form_id' => $fid, 'title' => 'captcha', 'active' => 0, 'type' => 'input', 'main' => 1, 'setting' => '', 'required' => 1, 'defaultval' => '', 'attributes' => '', 'tpl' => '' ), 6 => array( 'new' => true, 'form_id' => $fid, 'title' => 'Никнейм', 'active' => 1, 'type' => 'input', 'main' => 0, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="fld[[tag:id]]" class="form-control" placeholder="[tag:title]"', 'tpl' => '
[tag:fld]
' ), 7 => array( 'new' => true, 'form_id' => $fid, 'title' => 'Текст сообщения', 'active' => 1, 'type' => 'textarea', 'main' => 0, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="fld[[tag:id]]" class="form-control" placeholder="[tag:title]"', 'tpl' => '
[tag:fld]
' ), 8 => array( 'new' => true, 'form_id' => $fid, 'title' => 'Работа чекбокса', 'active' => 1, 'type' => 'checkbox', 'main' => 0, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="fld[[tag:id]]" value="agree"', 'tpl' => '
' ), 9 => array( 'new' => true, 'form_id' => $fid, 'title' => 'Оценка отправителя формы сервисом reCAPTCHA', 'active' => 1, 'type' => 'input', 'main' => 0, 'setting' => '', 'required' => 0, 'defaultval' => '', 'attributes' => 'id="hidden_fld_[tag:formalias]" type="hidden"', 'tpl' => '[tag:fld]' ) ) );