M
M
Maxim Shadrin2017-03-28 10:42:10
MODX
Maxim Shadrin, 2017-03-28 10:42:10

Why does AjaxForm send placeholder instead of value?

Hello. Implemented two forms in conjunction with AjaxForm and FormIt.
One form works great.
And the other, with exactly the same settings, sends me a placeholder like instead of its value.
The only difference between these forms is that the first one is called inside the resource, and the second one is called by a chunk inside the template. Can this affect something?
This is what the code looks like:
Chunk inserted into the template.

<section class="communication">
  <div class="container">
    <h2>Нужны охранные услуги?</h2>
    <p>Укажите свои данные и мы обязательно свяжемся с вами!</p>
    
    
  </div>
</section>

tpl_communication chunk:
<form method="post" id="communication-form">
  <input type="text" required placeholder="ваш телефон или email" id="contact_info" value="">
  <button type="submit">Оставить заявку</button>
  
  
</form>

communication_text chunk:
<p>Оставлена заявка на услугу</p>
<p><strong>Контактные данные:</strong> </p>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2017-03-28
@makc9I

Try adding the name attribute to the input, i.e. you will have like this:
And in the form tag itself, change to:

<form action="" method="post" id="communication-form">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question