E
E
Evgeny Kholodov2017-07-26 17:15:31
MODX
Evgeny Kholodov, 2017-07-26 17:15:31

Why does AjaxForm send an array?

Good day! For some reason unknown to me, AjaxForm on modx revolution sends an array instead of an email template. The letter comes with the following content:
Array ( [name-zv] => Eugene [phone-zv] => 87777777777 [pageId] => 13 )
Feedback form chunk

<div id="modal_form">
    <h3>Заказать звонок!</h3>
    <div class="comment">Оставьте заявку и наш специалист свяжется с вами в ближайшее время!</div>
      <a class="exit"></a>

</div>
<div id="overlay"></div>

Chunk AjaxForm TPL
<form method="post" class="ajax_form af_example">
        <input type="text" placeholder="Как вас зовут?" value="" name="name-zv" id="name" class="input_text form-control"/>
        <span class="error_name"></span>
        <input type="text" placeholder="Контактный телефон *" name="phone-zv" value="" id="phone-zv" class="phone-zv form-control"/>
        <span class="error_message"></span>
    <div class="comment">Поля отмеченные <span class="required">*</span> обязательны для заполнения</div>
        <input class="button" type="submit" value="Заказать">
    
    
</form>

Letter Template
<p style="font-size: 18px">На сайте <b>http://askmeplz.com/</b> оставили заявку.</p>
<p>От кого: </p>
<p>Телефон: </p>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2017-07-26
@holodovz

somewhere the template name is incorrectly specified as a result, everything is sent as is.
modal-zv-tpl is definitely not named correctly or with the path of the problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question