Answer the question
In order to leave comments, you need to log in
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>
<form method="post" id="communication-form">
<input type="text" required placeholder="ваш телефон или email" id="contact_info" value="">
<button type="submit">Оставить заявку</button>
</form>
<p>Оставлена заявка на услугу</p>
<p><strong>Контактные данные:</strong> </p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question