[[!AjaxForm?
&form=`tpl.AjaxForm.5`
&snippet=`FormIt`
&hooks=`math,FormItSaveForm,email`
&mathMinRange=`1`
&mathMaxRange=`10`
&emailSubject=`Cообщение с сайта`
&emailTo=`[[#8.tv_01]]`
&emailFrom=`[[#8.tv_01]]`
&emailTpl=`tpl.email.4`
&validate=`math:required,name4:required,phone4:required,workemail4:blank,text4:required:stripTags`
&submitVar=`form4`
&validationErrorMessage=`В форме содержатся ошибки!`
&successMessage=`Сообщение успешно отправлено`
]]
<form id="form1" name="form1" action="04" method="post" class="ajax_form" >
<input type="hidden" name="workemail4" value="[[+fi.nospam4]]" />
<input id="name4" name="name4" value="[[!+fi.name4]]" placeholder="Ваше имя..." type="text">
<span class="error_name4" style="font-size:10px"></span>
<input id="phone4" name="phone4" value="[[!+fi.phone4]]" placeholder="Ваш телефон..." type="text">
<span class="error_phone4" style="font-size:10px"></span>
<div class="">
<div class="math">
<div class="math_1">
[[!+fi.op1]] [[!+fi.operator]] [[!+fi.op2]]
</div>
<div class="math_2">
<input class="form-control" type="text" name="math" value="[[!+fi.math]]" />
<input type="hidden" name="op1" value="[[!+fi.op1]]" />
<input type="hidden" name="op2" value="[[!+fi.op2]]" />
<input type="hidden" name="operator" value="[[!+fi.operator]]" />
</div>
</div>
<span class="error_math" style="font-size:10px"></span>
</div>
<input type="submit" name="form4" id="button" value="Отправить">
<div id="successmsg" ></div>
</form>