C
C
Cheizer2018-07-17 13:52:33
MODX
Cheizer, 2018-07-17 13:52:33

MODX REVO AJAX Form + FormIt how to add PHONE field?

Friends tell me how to add a phone field to the AJAX FORM + FORM IT form?

Name and Email work, but by analogy, I add a phone number, it doesn’t work, what’s wrong?

<form action="" method="post" class="ajax_form af_example">

    <div class="form-group">
        <label class="control-label" for="af_name">af_label_name</label>
        <div class="controls">
            <input type="text" id="af_name" name="name" value="" placeholder="" class="form-control"/>
            <span class="error_name"></span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label" for="af_email">af_label_email</label>
        <div class="controls">
            <input type="email" id="af_email" name="email" value="" placeholder="" class="form-control"/>
            <span class="error_email"></span>
        </div>
    </div>

 <div class="form-group">
        <label class="control-label" for="af_phone">Телефон</label>
        <div class="controls">
            <input type="text" id="af_phone" name="email" value="" placeholder="" class="form-control"/>
            <span class="error_phone"></span>
        </div>
    </div>

    <div class="form-group">
        <div class="controls">
            <button type="submit" class="btn btn-primary">отправить</button>
        </div>
    </div>

    
    
</form>


calling like this



Email tpl like this

<b>Email</b>: <br />
<b>Имя</b>: <br />
<b>Тел</b>: 

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2018-07-17
@Cheizer

<input type="text" id="af_phone" name="email" value=""

Doesn't bother you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question