V
V
Vadim Yagofarov2019-08-01 07:27:52
MODX
Vadim Yagofarov, 2019-08-01 07:27:52

ajaxform not working in modx revo?

Good afternoon! What am I doing wrong? On the site, the form is submitted with a page reload, although I use ajaxForm, and then when the form is submitted, if you simply reload the page, then it resends the letter. Here is the site yuzk.ru. How to fix the form, where is the error?


<form action="" method="post" class="ajax_form af_example form" id="form">
                <div class="form-group">
                    <input type="name" class="form-control" id="af_name" aria-describedby="emailHelp" placeholder="Введите имя" name="name" value="" required>
                    <span class="error_name"></span>
                </div>
                <div class="form-group">
                    <input type="tel" class="form-control" id="af_phone" placeholder="Введите телефон" name="phone" value="" required>
                    <span class="error_phone"></span>
                </div>
                
                  <button type="submit" class="btn form__btn">Отправить</button>
                  
                
</form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shinkar, 2019-08-01
@Accusser

Perhaps the scripts conflict. Try to remove all scripts and check the form. If it works by elimination, you will find a conflict.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question