A
A
AlexAll2018-12-17 08:54:59
Yii
AlexAll, 2018-12-17 08:54:59

How to make multi checkbox in field field in yii2?

Hello, how can I make the field <?= $form->field($model, 'checkbox')->checkbox() ?> multiple
so that in one field you can display many checkboxes for selection and then send to the controller?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-12-17
@kimono

For these purposes, checkboxList() should be used .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question