Answer the question
In order to leave comments, you need to log in
Why is custom error message not displayed in yii2?
use kartik\form\ActiveForm;
<?= $form->field($model, 'type_id')->dropDownList([
'0' => 'Выберите тип организации',
'1' => 'ИП',
'2' => 'ООО'])->label(false) ?>
[['type_id'], 'number', 'min' => 1, 'message' => 'Выберите тип вашей организации'],
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