A
A
Alexander Ivanov2015-12-07 16:07:44
MODX
Alexander Ivanov, 2015-12-07 16:07:44

Why doesn't &emailTpl work on AjaxForm?

Form code:

<div class="popup-overlay">
      <div class="popup">
        <div id="question-form">
           <div class="AJAX-form">
            <div class="close-form-ajax-question-form">
                <i class="sprite sprite-close"></i>
            </div>
             
             
          <div class="thanks">
            <div class="content">
                Ваше сообщение отправлено
            </div>
          </div>
        </div>
        </div>
      </div>
    </div>

If I leave &emailTpl=`sentEmailTpl` then nothing comes.
If I remove it, this comes up:
nospam:blank: 
email: [email protected]
tel: 33333333333333
comments: reeeeee
pageId: 1

&emailTpl=`sentEmailTpl` chunk code:
<p>E-mail: </p>
<p>Телефон: </p>
<p>Страница вопроса: </p>

chunk code tpl.AjaxForm.popup-question-product;
<form action="" method="post" class="form ajax_form_section_callback">
    <div class="content-form">
     <h2>Заявка на комплект</h2>
     <input type="hidden" name="nospam:blank" value="" />
    <span class="error"></span>
    <input type="text" name="email" id="email" value="" placeholder="E-mail" />    
    <span class="error"></span>
    <input type="tel" placeholder="Телефон (не обязательно)" name="tel" id="tel" value="" />
     <input type="submit" class="btn submit_button block-bg-color-impotent" value="Отправить" >
     <a href="/privacy-policy">Ваши данные не будут переданы третьим лицам</a>
    
  
    </div>
   </form>

Error in Log:
[2015-12-07 10:22:55] (ERROR @ /assets/components/ajaxform/action.php) [FormIt] Произошла ошибка при попытке


Those. the body is empty but why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2016-01-04
@igamov

One question, how did you manage to get the Page id??? If there is a link, please send it...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question