yii2 hidden input value May 24, 2023 by Tarik Use the following: echo $form->field($model, 'hidden1')->hiddenInput(['value'=> $value])->label(false);