In the database there is a field with the data type varchar. There will be different values, but you still need to make a checkbox that would send - the values are Yes / No or 0/1.
Here is a checkbox
<?= $form->field($model, 'status')->checkbox([], false); ?> In the rules of validation rules, the type 'string' is simply specified. When sending, the status field sends null. Tell me how to implement it correctly, do we need additional validation rules?