Валидация radio кнопок в Sendit

Столкнулся с тем, что у меня почему-то не работает валидация радио кнопок в Sendit.
Форма:
<form data-si-form="Order" data-si-preset="simpleform" class="form-horizontal">
    <div class="row">
        <div class="control-group col-md-6">
    		<input type="text" name="name" placeholder="ваши имя, фамилия*" class="span4" />
    		<span data-si-error="name"></span>
    	</div>
    	<div class="control-group col-md-6">
    		<input type="phone" name="phone" placeholder="ваш телефон*" class="span4" />
    		<span data-si-error="phone"></span>
    	</div>
    	<div class="control-group col-md-6">
    		<input type="email" name="pochta" placeholder="ваш email*" class="span4" />
    		<span data-si-error="email"></span>
    	</div>

        <div class="control-group  col-md-12">
            <textarea name="message" class="form-control" placeholder="Сообщение" rows="5"></textarea>
            <span data-si-error="message"></span>
        </div>
        <div class="control-group  col-md-12">
            <p>What is your current level of education?*</p>
            <label>
                <input type="radio" name="form1" value="1 year"> 
                1st year of Bachelor's degree
            </label>
            <label>
                <input type="radio" name="form1" value="2 year"> 
                2nd year of Bachelor's degree
            </label>
            <label>
                <input type="radio" name="form1" value="3 year"> 
                3rd year of Bachelor's degree
            </label>
            <label>
                <input type="radio" name="form1" value="4 year"> 
                4th year of Bachelor's degree
            </label>
            <label>
                <input type="radio" name="form1" value="5 year"> 
                5th year of Specialist degree
            </label>
            <label>
                <input type="radio" name="form1" value="Master"> 
                Master's degree
            </label>
            <input type="hidden" name="form1" value="">
            <p data-si-error="form1"></p>
        </div>
    </div>
	<label for="politics">
        <input type="checkbox" name="politics" id="politics">
        Я согласен на обработку данных
    </label>
    <div class="f-modal__btn-wrapper">
		<button type="submit" class="link g-button w-100" id="form_submit">Отправить</button>
	</div>
</form>
Пресет:
'simpleform' => [
        'validate' => 'email:email:required,name:required,form1:radio:required,politics:checkbox:required',
    ],
Если выбираю любой вариант из блока радио кнопок и пытаюсь отправить все равно выдает ошибку «Это поле обязательно для заполнения.» Есть какая-то хитрость с валидацией radio в Sendit?
Евгений
3 часа назад
modx.pro
10
0

Комментарии: 0

Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
0