M
M
Mikha Pankratov2016-02-11 18:52:51
Yii
Mikha Pankratov, 2016-02-11 18:52:51

How to write dynamic Rules in Yii2?

Good afternoon,
I will go straight to the question.
I have a table, it has optional fields, for example field1, field1
I also have a select on the form.
I want that at a choice became obligatory fields. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Arutyunov, 2016-02-11
@frmax

Write your own validator in which to check the fields?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question