Вот снипет
[[!AjaxForm?
&snippet=`FormIt`
&form=`tpl.AjaxForm.vote`
&hooks=`email`
&emailSubject=`Запрос с сайта "Оставить заявку"`
&emailTo=``
&validate=`name:required,email:required,tel:required`
&validationErrorMessage=`Пожалуйста, заполните поля корректно`
&successMessage=`Ваша заявка принята, в ближайшее время мы свяжемся с Вами`
]]
А вот tpl.AjaxForm.vote
<form action="" method="post" class="ajax_form af_example form-horizontal smpvo">
<div class="Form-agreement one">
<div class="control-group">
<!--<label class="control-label" for="af_name">Имя</label>-->
<div class="controls">
<input type="text" id="af_name" name="name" value="[[+fi.name]]" placeholder="Ф.И.О.*" required class="span4" />
<!--<span class="error_name">[[+fi.error.name]]</span>-->
</div>
</div>
<div class="control-group">
<!--<label class="control-label" for="af_name">Имя</label>-->
<div class="controls">
<input type="text" id="af_address" name="address" value="[[+fi.address]]" placeholder="Адрес" class="span4" />
<!--<span class="error_name">[[+fi.error.address]]</span>-->
</div>
</div>
<div class="control-group">
<!-- <label class="control-label" for="af_email">E-mail</label>-->
<div class="controls">
<input type="email" id="af_email" name="email" value="[[+fi.email]]" placeholder="E-mail*" required class="span4" />
<!--<span class="error_email">[[+fi.error.email]]</span>-->
</div>
</div>
<div class="control-group">
<!--<label class="control-label" for="af_email">Телефон</label>-->
<div class="controls">
<input type="tel" id="af_tel" name="tel" value="[[+fi.tel]]" placeholder="Телефон*" required class="span4" />
<!--<span class="error_tel">[[+fi.error.tel]]</span>-->
</div>
</div>
<div class="control-group">
<!-- <label class="control-label" for="af_message">[[%af_label_message]]</label>
--> <div class="controls">
<textarea id="af_message" name="message" class="span4" rows="5" placeholder="Комментарий">[[+fi.message]]</textarea>
<!--<span class="error_message">[[+fi.error.message]]</span>-->
</div>
</div>
<div class="control-group">
<div class="controls">
<!-- <button type="reset" class="btn">[[%af_reset]]</button>-->
<button type="submit" class="btn btn-primary make-order-form-inputs-submit">[[%af_submit]]</button>
</div>
</div>
[[+fi.success:is=`1`:then=`
<div class="alert alert-success">[[+fi.successMessage]]</div>
`]]
[[+fi.validation_error:is=`1`:then=`
<div class="alert alert-danger"></div>
`]]
</div>
</form>