This is my form checkboxList with arrayhalper:
<div class="form-group">
<?= $form->field($model, 'reg_id')->checkboxList(
arrayHelper::Map(Riders::find()->where(['user_id' => Yii::$app->user->identity->id])->all(),'rider_id',
function($model) { return **$model->rider_firstname . " (" . $model->cagoriesCategory->category_name . ")"**; }),
['class' => 'checkbox-inline', 'id' => 'person' ]), ?>
</div>
The label its work correctly, example: Jilly (MasterA). But I want to get value difference with label, example like this Jilly:MasterA. How to give values like this?
<input type="checkbox" id="person" value="Ristha:MasterA">Ristha (MasterA)</input>@scaisEdge