yii2 formwizard checkbox field value set to 1 even if not selected
问题 I am using yii2-formwizard and I want to insert a checkbox as form input field for the field is_legal in a tabular step. So in fieldConfig array, reading the documentation, I inserted the following code: 'is_legal' => [ 'options' => [ 'type' => 'checkbox', 'template' => '{input}{beginLabel}{labelTitle}{endLabel}{error}{hint}', ], 'labelOptions' => ['label' => \Yii::t('app', 'Legal Representative')], ], If I select the checkbox or not the value of the field is always 1 as shown on: . However,